windows-installer

Using heat.exe for files placed in WindowsVolume - GUID Issues

笑着哭i 提交于 2020-01-15 11:09:11
问题 I searched some time on SO and Google but I didn't find related questions. So hopefully this issue isn't a duplicate. For a customer of mine I'm creating installer artifacts with WiX. Some files are installed to [WindowsVolume]\tool\scripts. That went fine as long as I manually added those files to the according WiX fragment. Since files of this component are being moved and removed pretty often lately I decided to fetch them via heat.exe from subversion. A problem I'm facing is, that heat's

Empty directories are present in programfiles after uninstall

我们两清 提交于 2020-01-15 10:37:07
问题 While uninstalling a MSI package, there are a bunch of empty folders which are not removed from the ProgramFiles. Is there a way Wix in which I can make sure all the empty directories are removed after uninstallation along with InstallDir. 回答1: The folder may be used by another process. If so, you could not delete the folders even manually. In that case, 1st close those processes using custom action and proceed the uninstall. Now folders will be deleted. If there is no process running but

WiX Installer - Run an MSI multiple times with different properties?

Deadly 提交于 2020-01-15 09:44:51
问题 I am building a bootstrapper using WiX toolset (my first). It is for an add-on package for the Microsoft Flight Sim family. There are several versions of MFSF and customers often want to install our add-on package into multiple simulators. This naturally means installing many of the same files into multiple different root directories. I know I can easily choose ONE root folder by passing a property from the bootstrapper to the MsiPackage. But is there a way to get the package to install to

trigger setup.exe when I mount an iso

不羁的心 提交于 2020-01-15 09:43:09
问题 Whenever I mount an ISO. i want the setup.exe to be triggered automatically. There is a autorun.inf file to handle this but still nothing works. Contents of autorun.inf [autorun] open=setup.exe what am I missing here. any registry entry I should change. Please help me out. 回答1: ISO : Have you confirmed that this is even possible from a mounted image? (Seems not to be). In other words, did you try to put your autorun.inf and friends on a DVD or a USB stick and then testing whether auto-run

trigger setup.exe when I mount an iso

不羁岁月 提交于 2020-01-15 09:42:30
问题 Whenever I mount an ISO. i want the setup.exe to be triggered automatically. There is a autorun.inf file to handle this but still nothing works. Contents of autorun.inf [autorun] open=setup.exe what am I missing here. any registry entry I should change. Please help me out. 回答1: ISO : Have you confirmed that this is even possible from a mounted image? (Seems not to be). In other words, did you try to put your autorun.inf and friends on a DVD or a USB stick and then testing whether auto-run

string too long with MsiGetProperty with Installshield Installscript

情到浓时终转凉″ 提交于 2020-01-15 09:08:32
问题 I am using MsiGetProperty to get string parameter value from the installer. And after that I am calling a managed dll and I pass the that value: nvBufferSize = MAX_STRING; MsiGetProperty (hMSI, "DBHMS", sDbHost, nvBufferSize); when I pass the value of sDbHost is like this when I receive it from managed code: srvdata-02NULNULNULNULNULNUL...... however in the interface I wrote just "srvdata-02". With that same code it was fine with Installshield 2010, now I am upgrading it to installshield 2012

string too long with MsiGetProperty with Installshield Installscript

馋奶兔 提交于 2020-01-15 09:08:08
问题 I am using MsiGetProperty to get string parameter value from the installer. And after that I am calling a managed dll and I pass the that value: nvBufferSize = MAX_STRING; MsiGetProperty (hMSI, "DBHMS", sDbHost, nvBufferSize); when I pass the value of sDbHost is like this when I receive it from managed code: srvdata-02NULNULNULNULNULNUL...... however in the interface I wrote just "srvdata-02". With that same code it was fine with Installshield 2010, now I am upgrading it to installshield 2012

WIX: When upgrading, what to do when there are 2 different UpgradeCodes?

二次信任 提交于 2020-01-15 07:47:51
问题 After getting a good answer here: WIX: How can I uninstall a previous MSI built using a VS *.vdproj, now i'm facing a different issue in the field. I have 2 versions out there, with 2 different UpgradeCodes. That happened because we already deployed one version of the new WIX w/out syncing the UpgradeCode with the old MSI. Syncing the new Wix installer with one of the codes, upgrade goes smoothly. Am I hosed on the second one? I tried to just uninstall the extra one from Add/Remove and that

How can I modify an MSI in memory?

时光怂恿深爱的人放手 提交于 2020-01-14 13:05:52
问题 I'd like to read an MSI file into a MemoryStream (or something similar), and modify it. What's the easiest way to do this, without corrupting the MSI? All I need to be able to do is modify the value of one of the properties in the MSI. I'd prefer something in .Net, but I'm open to other platforms. Update: Here's my working code, using the Windows platform SDK, a COM reference to Microsoft Windows Installer Object Library and namespace WindowsInstaller: Installer installer = Activator

How can I modify an MSI in memory?

…衆ロ難τιáo~ 提交于 2020-01-14 13:05:02
问题 I'd like to read an MSI file into a MemoryStream (or something similar), and modify it. What's the easiest way to do this, without corrupting the MSI? All I need to be able to do is modify the value of one of the properties in the MSI. I'd prefer something in .Net, but I'm open to other platforms. Update: Here's my working code, using the Windows platform SDK, a COM reference to Microsoft Windows Installer Object Library and namespace WindowsInstaller: Installer installer = Activator