Category : windows-installer

I have a code that modifies a cached msi installer database which works fine when executed within a standalone exe. But when it is run from within an msi Custom Action I get an access violation that is very strange. const auto& msiProductCode = ::GetProductCode(::msiUpgradeCode); const auto& msiPath = ::GetCachedMSIPath(msiProductCode); PMSIHANDLE dbHandle{}; const auto res ..

Read more

What’s popping up and stopping the installation Hello Everyone, I am attempting to install Windows 10 through a USB Flash Drive, following the steps my company gave me, (Pressing F9, going into the registry and selecting to re-image based off of the usb, and then allowing the computer to follow the re-imaging process, but between ..

Read more

Our MSI installation often needs to replace DLLs that are injected to .net applications. Since we cannot unload these DLLs (they are IN USE), they are schedule to change after a restart, and the installation result is Restart Requested. Can we somehow avoid this? Is it possible to keep the DLLs loaded to those app, ..

Read more

<PackageGroup Id="happ"> <ExePackage Id="happ" SourceFile="..Productshappsetup.exe" SuppressSignatureVerification="yes" PerMachine="yes" Cache="always" UninstallCommand="/CMD/UNINSTALL,quiet" DetectCondition='(InstalledHAppVersion = HAppVersion) AND (NOT UPGRADINGBUNDLECODE)’ InstallCondition="(HAppVersion &lt;= InstalledHAppVersion) OR (NOT InstalledHAppVersion)" InstallCommand= "/CMD/[happ_CMD],progfilepath=&quot;[happ_progfilepath]&quot;,datapath=&quot;[happ_datapath]&quot;,serveruser=[happ_serveruser],startservices=[happ_startservices],dataarchiverport=[happ_dataarchiverport],firewall=[happ_firewall]" RepairCommand= "/CMD/[happ_CMD],progfilepath=&quot;[happ_progfilepath]&quot;,datapath=&quot;[happ_datapath]&quot;,serveruser=[happ_serveruser],startservices=[happ_startservices],dataarchiverport=[happ_dataarchiverport],firewall=[happ_firewall]"> <PayloadGroupRef Id="happPayloadGroup"/> </ExePackage> </PackageGroup> Here InstalledHAppVersion is 9.1.383.0 and HAppVersion is 10.0.436.0 Previously InstallCondition worked fine as string comparison becuase major version was only one character but now it is ..

Read more