Skip to content

Instantly share code, notes, and snippets.

Avatar

Maksym Pavlenko mxpv

View GitHub Profile
@mxpv
mxpv / delete.bat
Last active Dec 14, 2015
Unable to delete file or Directory in Windows 7 or Vista
View delete.bat
SET DIRECTORY_NAME="C:\Users\MAKSYM~1.PAV\AppData\Local\Temp"
TAKEOWN /f %DIRECTORY_NAME% /r /d y
ICACLS %DIRECTORY_NAME% /grant administrators:F /t
PAUSE
@mxpv
mxpv / ExchangeServerBuildNumbers.txt
Last active Oct 12, 2015
Exchange Server build numbers
View ExchangeServerBuildNumbers.txt
# http://support.microsoft.com/kb/158530
# http://www.wardvissers.nl/2010/04/26/exchange-2007-builds-numbers/
# http://social.technet.microsoft.com/wiki/contents/articles/240.exchange-server-and-update-rollups-build-numbers.aspx
Microsoft Exchange Server 4.0 4.0.837
Microsoft Exchange Server 4.0 (a) 4.0.993
Microsoft Exchange Server 4.0 SP1 4.0.838
Microsoft Exchange Server 4.0 SP2 4.0.993
Microsoft Exchange Server 4.0 SP3 4.0.994
Microsoft Exchange Server 4.0 SP4 4.0.995
@mxpv
mxpv / ProcessUtil.cs
Created Sep 28, 2012
Process start helper utility with CancellationToken and async output reading support
View ProcessUtil.cs
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Threading;
using Microsoft.Win32.SafeHandles;
namespace ConsoleApplication
{
public class ProcessUtil : IDisposable
{
@mxpv
mxpv / gist:3295227
Created Aug 8, 2012
Turn off firewall on Windows Server Core edition
View gist:3295227
netsh advfirewall set allprofiles state off
@mxpv
mxpv / gist:3141112
Created Jul 19, 2012
Disable all caps menu titles in Visual Studio 2012 RC
View gist:3141112
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\General\SuppressUppercaseConversion
Type DWord
Value 1
@mxpv
mxpv / gist:2987459
Created Jun 25, 2012
Open .msi installer file
View gist:2987459
msiexec /a "setup.msi" /qb TARGETDIR=c:\temp
@mxpv
mxpv / gist:2935715
Last active Apr 18, 2018
InstallShield Custom Actions notes
View gist:2935715

Deferred Custom Actions

To adhere to the Windows Installer "Best Practices," all changes that are made to a system are in a "deferred" action.

A deferred execution custom action must be scheduled in the execute sequence table within the section that performs script generation.

Deferred execution custom actions must come after "InstallInitialize" and come

@mxpv
mxpv / windows_build_numbers.txt
Last active Feb 19, 2019
Windows build numbers
View windows_build_numbers.txt
Windows Name or Service Pack Version Number
---------------------------- --------------
Windows 1.0 1.04
Windows 2.0 2.11
Windows 3.0 3
Windows NT 3.1 3.10.528
Windows for Workgroups 3.11 3.11
@mxpv
mxpv / logging.reg
Created Jun 15, 2012
Turn on MSI verbose logging
View logging.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer]
"Logging"="voicewarmupx!"