windows-installer

Failed to get MSI property in UPGRADINGPRODUCTCODE, WIX_UPGRADE_DETECTED

纵然是瞬间 提交于 2020-01-03 03:40:10
问题 I wanted to skip some of my custom actions during upgrade, uninstallDriver , to achieve this I have tried to retrieve property WIX_UPGRADE_DETECTED and UPGRADINGPRODUCTCODE , but both of them are not set. Sample code: UninstallDriver(MSIHANDLE hInstall) { char szBuff[1024]; DWORD dwValue = 0; OutputDebugStringA("UninstallDriver"); MsiGetPropertyA(hInstall, "UPGRADINGPRODUCTCODE", szBuff, &dwValue); OutputDebugStringA("UPGRADINGPRODUCTCODE");OutputDebugStringA(szBuff); MsiGetPropertyA(hInstall

How to find out which application requires a certain assembly from GAC?

假如想象 提交于 2020-01-03 02:45:06
问题 I have inherited an application, that uses Microsoft Enterprise Library. The VS solution of the applications contains about 200 projects. I have been restructuring the solution moving the projects around and removing obsolete ones. I need to tidy it up to make it ready for other developers. The solution contains Microsoft Enterprise Library dlls of a specific version, however when I moved stuff around, I noticed that some projects do not reference these dlls but instead dlls from my GAC. I

msi install program as startup

坚强是说给别人听的谎言 提交于 2020-01-03 01:47:28
问题 is it possible to install a program as a start up program using MSI installer? 回答1: I think you can just install a shortcut to Start Up folder. 回答2: Yes, that's possible. Here's one way, apparently. And here's another. Didn't try it myself though. If someone wants a program to appear in startup, they can just place a shortcut in the start up folder (of course, I'm aware that sometimes you have to offer it kindly to your users ;) 回答3: You can do a silent install for an msi and script that via

msi install program as startup

非 Y 不嫁゛ 提交于 2020-01-03 01:47:11
问题 is it possible to install a program as a start up program using MSI installer? 回答1: I think you can just install a shortcut to Start Up folder. 回答2: Yes, that's possible. Here's one way, apparently. And here's another. Didn't try it myself though. If someone wants a program to appear in startup, they can just place a shortcut in the start up folder (of course, I'm aware that sometimes you have to offer it kindly to your users ;) 回答3: You can do a silent install for an msi and script that via

Restart Manager Dialog Localizing Partially for Wix Installer

雨燕双飞 提交于 2020-01-02 21:55:34
问题 We have a legacy InstallShield installer for a product, for which we are porting that product to wix installer. I observed a improper behavior of localization in Restart Manager dialog only during ARP uninstallation, for which only the description part is getting localized and below radio buttons text is not localized. Screenshot at the end. But in the InstallShield installer it was proper. I couldn't trace what was missing here in my wix installer for this inconsistent behavior. I tried

How do I capture the results of a YESNOCANCEL MessageBox without gotos/labels in NSIS installer scripting?

时间秒杀一切 提交于 2020-01-02 05:33:16
问题 I would like to know how to use a YESNOCANCEL MessageBox in conjunction with IF logic from LogicLib.nsh in NSIS installer scripting to avoid having to use labels and gotos. Is there any way to capture the result of a MessageBox in a variable of some kind? Also, I know there are better things than NSIS out there, but using something else isn't a possibility at this point. =( Note the {WHAT GOES HERE??} in the below code. If this was just an If...Else... it would work fine. Thanks for the help

Add a summary information to WiX generated MSI

☆樱花仙子☆ 提交于 2020-01-02 04:56:22
问题 How to add (or change a default values) a summary page information to a WiX-generated MSI file? Summary page is the tab page which is visible if you right click on the MSI file in the Windows Explorer and includes following text fields: Title, Subject, Author, Category, Keywords, Comments alt text http://img151.imagevenue.com/img.php?image=13824_msi_summary_122_495lo.jpg 回答1: Further to @Stefan answer, here's a mapping of Wix items to msi details properties. have not found a way to set

Uninstall doesn't delete files within INSTALLDIR - Basic Msi - Installshield 2012

纵然是瞬间 提交于 2020-01-02 04:08:05
问题 I am creating a Basic Msi Installer using Installshield 2012 spring professional . Here i create a folder structure in Application Files as C:\Program files\Test Setup\Productname , Test Setup is the INSTALLDIR , and within this i have sub directories one of which [launch] contains the exe files . I have added these files and the directory sturcture using the Add Files and folders option in Application files menu of Project Assistant. After installing the product , when i uninstall it i find

WIX: Where and how should my CustomAction create and read a temporary file?

两盒软妹~` 提交于 2020-01-02 02:20:20
问题 I have a script CustomAction (Yes, I know all about the opinions that say don't use script CustomActions . I have a different opinion.) I'd like to run a command, and capture the output. I can do this using the WScript.Shell COM object, then invoking shell.Exec() . But, this flashes a visible console window for the executed command. To avoid that, I understand I can use the shell.Run() call, and specify "hidden" for the window appearance. But .Run() doesn't give me access to the StdOut of the