have been trying to create a WiX installer for my latest project. I have a strange issue where if I run the msi via cmd prompt as admin it works fine, the custom actions kick off without a fuss and everything works fine, but if I double click the msi the custom actions don't work and the installer fails. I'm using Visual Studio 2012 and using Windows 7.
<!--Custom Actions-->
<Binary Id='customShortcut' SourceFile='$(var.CustomDir)\TestInstallerCustom.CA.dll'/>
<Binary Id='customDir' SourceFile='$(var.CustomDir)\TestInstallerCustom.CA.dll'/>
<Binary Id='removeDir' SourceFile='$(var.CustomDir)\TestInstallerCustom.CA.dll'/>
<CustomAction Id='customShortcutId' BinaryKey='customShortcut' DllEntry='CustomShortcut'
Execute='immediate' Impersonate='no' Return='check' />
<CustomAction Id='customDirId' BinaryKey='customDir' DllEntry='CustomDir'
Execute='immediate' Impersonate='no' Return='check'/>
<CustomAction Id='removeDirId' BinaryKey='removeDir' DllEntry='RemoveDir'
Execute='immediate' Impersonate='no' Return='check'/>
<InstallExecuteSequence>
<Custom Action='customDirId' Before='InstallFinalize'/>
<Custom Action='customShortcutId' After='InstallFinalize'/>
<Custom Action="removeDirId" After="InstallValidate">REMOVE="ALL"</Custom>
</InstallExecuteSequence>