AppFabric installation failed because installer MSI returned with error code : 1603

I had a similar problem 9/21/2012 11:28:01 AM EXEPATH=powershell.exe PARAMS=-command “$str = [System.Environment]::GetEnvironmentVariable(\”PSModulePath\”, [System.EnvironmentVariableTarget]::Machine); $str = $str+\”;c:\Program Files\AppFabric 1.1 for Windows Server\PowershellModules\”; c:\Windows\system32\setx.exe /M PSModulePath \”$str\”” LOGFILE=C:\Users\XXXXXXX\AppData\Local\Temp\AppServerSetup1_1_CustomActions(2012-09-21 11-27-26).log Error: ERROR: Invalid syntax. Default option is not allowed more than ‘2’ time(s). Error: Type “SETX /?” for usage. My issue was the PSModulePath having an improper … Read more

Extract MSI from EXE

For InstallShield MSI based projects I have found the following to work: setup.exe /s /x /b”C:\FolderInWhichMSIWillBeExtracted” /v”/qn” This command will lead to an extracted MSI in a directory you can freely specify and a silently failed uninstall of the product. The command line basically tells the setup.exe to attempt to uninstall the product (/x) and … Read more

In WiX files, what does Name=”SourceDir” refer to?

From: https://robmensching.com/blog/posts/2010/1/26/stackoverflow-what-does-namesourcedir-refer-to/ Honestly, it’s something that we should have hidden from the developer but didn’t. Sorry. The truth of the matter is that the Windows Installer expects the Directory tree to always be rooted in a Directory row where the primary key (Directory/@Id) is “TARGETDIR” and the DefaultDir column (Directory/@Name) is “SourceDir”. During an install, … Read more

Create shortcut to desktop using WiX

The shortcut is a non-advertised one. Remember to put the component in your feature tag. <Directory Id=”TARGETDIR” Name=”SourceDir”> <Directory Id=”DesktopFolder” Name=”Desktop”> <Component Id=”ApplicationShortcutDesktop” Guid=”*”> <Shortcut Id=”ApplicationDesktopShortcut” Name=”Text under your icon” Description=”Comment field in your shortcut” Target=”[MYAPPDIRPROPERTY]MyApp.exe” WorkingDirectory=”MYAPPDIRPROPERTY”/> <RemoveFolder Id=”DesktopFolder” On=”uninstall”/> <RegistryValue Root=”HKCU” Key=”Software\MyCompany\MyApplicationName” Name=”installed” Type=”integer” Value=”1″ KeyPath=”yes”/> </Component> </Directory> <Directory Id=”ProgramFilesFolder” Name=”PFiles”> <Directory Id=”MyCompany” Name=”MyCompany”> … Read more

How to pass CustomActionData to a CustomAction using WiX?

Deferred custom actions can not directly access installer properties (reference). In fact, only CustomActionData property session.CustomActionData and other methods and properties listed here are available on the session object. Therefore, for a deferred custom action to retrieve a property such as the INSTALLLOCATION, you have to use a type 51 custom action — i.e. a … Read more

Uninstalling an MSI file from the command line without using msiexec

Express Options: Uninstall by Product GUID: (find product GUID) – section 3 below for logging. There is also: MSI logging in depth here: msiexec.exe /x {11111111-1111-1111-1111-11111111111X} Uninstall by MSI file: msiexec.exe /x “c:\filename.msi” Express Interactive: Right click MSI file in Windows Explorer and select “Uninstall”. There are many ways to uninstall an MSI package. The … Read more

How does one auto update a windows application the way Google Chrome does? [closed]

To replicate this update behavior you need two things: An updater application which checks for updates regularly. If an update is found it should install it automatically. Most commercial setup authoring tools include good updater applications. You can try writing an updater yourself, but it’s not as easy as it sounds. Per-user installations for each … Read more

Free software for Windows installers: NSIS vs. WiX? [closed]

If you want to get an installer done today, with the minimum amount of overhead, use NSIS. Simple scripting language, good documentation, fast. If you want to build MSI files, integrate with the Windows Installer transactional system, and have plenty of time to devote to learning the declarative model used by Windows Installer, then check … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)