windows-installer

Custom actions without additional prerequisites

强颜欢笑 提交于 2020-02-25 04:59:07
问题 In the past I've written all my custom actions in VBScript, because my understanding is that this (and JScript) is the only type of custom action which does not require additional prerequisites on the target system. However, writing VBScript is a pain, and now I also encountered a problem which apparently cannot be solved in VBScript (see Currupted file in non-english locale (encoding problem?)). So I'm considering using a C# custom action instead. But I don't want to introduce additional

Change the value of a MSI property loaded from a DLL using a MSI transform

让人想犯罪 __ 提交于 2020-02-12 05:06:49
问题 I need to modify the installation behavior of a MSI setup for "IBM i Access for Windows". The setup was created using InstallShield. During the installation the setup triggers two other MSI installations through "chaining". The parameters passed to MSIEXEC.EXE to execute those two installations get loaded by a custom action from a DLL that is included with the installation. The parameters end up in a MSI property. I want to change the value in that property to manipulate the command line

Change the value of a MSI property loaded from a DLL using a MSI transform

落爺英雄遲暮 提交于 2020-02-12 05:06:28
问题 I need to modify the installation behavior of a MSI setup for "IBM i Access for Windows". The setup was created using InstallShield. During the installation the setup triggers two other MSI installations through "chaining". The parameters passed to MSIEXEC.EXE to execute those two installations get loaded by a custom action from a DLL that is included with the installation. The parameters end up in a MSI property. I want to change the value in that property to manipulate the command line

How can I find the upgrade code for an installed application in C#?

雨燕双飞 提交于 2020-02-09 10:17:13
问题 I am using the C# wrapper for the Windows Installer API from the WIX Toolset. I use the ProductInstallation class to get information about the installed products such as the product code and product name. For example Product Name - "My Test Application" Product Code - {F46BA620-C027-4E68-9069-5D5D4E1FF30A} Product Version - 1.4.0 Internally this wrapper uses the MsiGetProductInfo function. Unfortunately this function does not return the product's upgrade code. How can I retrieve the upgrade

Custom Uninstall not deleting file in .net Application

女生的网名这么多〃 提交于 2020-02-06 11:22:16
问题 I have a settings file created when user run the wpf application. I have created a custom uninstaller to delete some registry keys related to my app and to delete this setting file. But my file is not getting deleted. Here is the code - public override void Uninstall(IDictionary savedState) { base.Uninstall(savedState); try { using (RegistryKey registryKey = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true)) { if (registryKey.GetValue(

How to disable recovering missed files for Visual Studio Installer Projects?

人盡茶涼 提交于 2020-02-05 13:17:06
问题 I created a program that uses images from the Blizzard API service. I created an installer for the program, and I place the images in the "User's Application Data Folder". Installation is excellent, the images are unpacked into the folder "AppData / Roaming / MyApp". There is a need for the images to be deleted, and the program will download them from the Blizzard service itself. But when you delete the installed files, the installer starts restoring the files, and the program cannot download

WiX: How do I prevent multiple copies of a bound file being added to an MSI?

一个人想着一个人 提交于 2020-02-04 05:40:48
问题 I have an installer, which links a wixlib. The wixlib installs an executable file to multiple directories. When I turn on the "Bind files into the library file" for the wixlib (using the -bf switch), lit.exe adds the executable to the wixlib. However, when I link the wixlib in the MSI, the executable is added multiple times to the MSI file, bloating the installer size. When I turn off "Bind files into the library file", the problem doesn't happen (but obviously, I need to setup the WiX

Why app installed using MSI installer would disappear from Windows

我的未来我决定 提交于 2020-02-04 05:08:22
问题 We made some changes to the installation and updating process of our Windows app recently, and some users are now complaining that Windows sometimes automatically deletes the main application .exe file. It usually occurs after users update app using built-in web update feature. The feature is implemented using .msi built in A dvanced Installer tool . We are struggling to figure out what is causing this, and haven't found a way to consistently reproduce the issue (though we've seen it happen

File Browse Dialog in Wix Installer

给你一囗甜甜゛ 提交于 2020-01-27 08:31:49
问题 I am using Wix Installer v3.9 to create a setup. I want to pop a File Browse dialog after the Installation gets completed. User can select multiple files from a directory. Then those file paths have to pass as command line arguments to an exe. How can I do this? The Wix BrowseDlg lets select directory only. Any help is appreciated. 回答1: As far as I know,wix toolset doesn`t have any file browse control. So I normally use c# Custom Action to do this job. Try this sample and customize it

File Browse Dialog in Wix Installer

风流意气都作罢 提交于 2020-01-27 08:30:28
问题 I am using Wix Installer v3.9 to create a setup. I want to pop a File Browse dialog after the Installation gets completed. User can select multiple files from a directory. Then those file paths have to pass as command line arguments to an exe. How can I do this? The Wix BrowseDlg lets select directory only. Any help is appreciated. 回答1: As far as I know,wix toolset doesn`t have any file browse control. So I normally use c# Custom Action to do this job. Try this sample and customize it