windows-installer

Find merge modules for vcredist_x86.exe

蹲街弑〆低调 提交于 2021-01-28 08:02:05
问题 The latest visual studio c++ redistributable is located here. But the problem is that I want to include it to install shield installation and it needs merge module rather then exe file. How can I find corresponding merge module (msm file)? Is there a way to download it to installshield somehow? 回答1: In Summary : Use Installshield to install the executables for the VC++ runtime via "suite projects" (chain of setups to install with launcher), or locate the merge modules on disk on systems with

Batch file is not executing before application uninstalled using WiX

一笑奈何 提交于 2021-01-28 06:22:37
问题 My batch file that I'm trying to run when an Excel plugin needs to be uninstalled is not executing. I'm using the following custom actions to do post install and also on uninstalling the product. The following code: <CustomAction Id="registeraddin" ExeCommand="[INSTALLFOLDER]RegisterMilerAddIn.bat" Directory="INSTALLFOLDER" Impersonate="no" Execute="deferred" Return="asyncWait" /> <CustomAction Id="unregisteraddinpostinstall" ExeCommand="[INSTALLFOLDER]UnRegisterMilerAddIn.bat" Directory=

Wix Toolset RegistrySearch Uninstall problem MSI INFO 1402 “Could not open key. Verify you have sufficient access to that key”

谁说我不能喝 提交于 2021-01-28 05:05:27
问题 I am having a big problem trying to uninstall an application that I have created an installer for using WiX Toolset v3.11 I am using the "remember property" pattern to store some properties in a registry key so they can be read back during the uninstall. I will provide an example, but note there are 5 in total. <Property Id="MyProperty" Value="DefaultValue"> <RegistrySearch Id="MyPropertyRegSearch" Root="HKLM" Key="Software\Company\Installer" Name="myproperty" Type="raw" /> </Property> then I

Wix#: how to bind custom UI decision to actual installation steps?

☆樱花仙子☆ 提交于 2021-01-28 04:49:01
问题 We have two installation modes: service and app. Using Wix#, I couldn't find a way to present this simple two-radio buttons dialog to the user: Choose your installation: (*) App [default] ( ) Service And then choose which files (and action) to deploy/perform accordingly. How do we even bind the user's decision with the actual operation? Edit: I discovered how to do that, eventually, but still can't make the GUI selection affect the deployed files (although the bound property do change). Here

Add registry key to HKCU RunOnce for every user from Visual Studio setup project

不问归期 提交于 2021-01-28 03:09:56
问题 I need to install an application that will run once for any user that logs in who has a profile on a Windows installation. I don't need it to run for new users. I am using a Visual Studio 2010 Setup Project to create an MSI, and I am happy to make Custom Actions in C# to fiddle with the registry if the MSI registry stuff isn't flexible enough. I know how to add a registry value to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce with the MSI, but that will only start the

Cancel installation from my custom action

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-27 13:35:02
问题 I'm writing installer for my program using Windows Installer (not wix). In some cases i want cancel installation proccess from my custom action. Beside, i want show an error message with my text. How do this? C#, .net 3.5 回答1: You can do this by creating an error custom action. Set the condition of the error custom action to be the fail condition (if the condition evaluates to true, the installation will fail) and set the message to your custom text. 回答2: Working thing for me: Context: for

Cancel installation from my custom action

╄→尐↘猪︶ㄣ 提交于 2021-01-27 13:28:14
问题 I'm writing installer for my program using Windows Installer (not wix). In some cases i want cancel installation proccess from my custom action. Beside, i want show an error message with my text. How do this? C#, .net 3.5 回答1: You can do this by creating an error custom action. Set the condition of the error custom action to be the fail condition (if the condition evaluates to true, the installation will fail) and set the message to your custom text. 回答2: Working thing for me: Context: for

Inno Setup AfterInstall procedure is executed too early, when installing MSI from Run section with /qn (silent) switch

走远了吗. 提交于 2021-01-24 09:41:47
问题 After the execution of the mariadb-10.2.11-winx64.msi file, that installs the MariaDB 10.2.11 Server, I would like to make some changes on the my.ini file of the MariaDB 10.2.11 Server after it has been installed. I have tried to use the AfterInstall parameter as shown bellow: [Files] Source: C:\Setup\Bin\mariadb-10.2.11-winx64.msi; DestDir: {tmp}; \ Flags: ignoreversion promptifolder deleteafterinstall; Components: server [Run] Filename: {tmp}\mariadb-10.2.11-winx64.msi; Parameters: /qn; \

WIX Installer UI: Tooltip for Icon/Bitmap

不羁岁月 提交于 2021-01-05 12:49:14
问题 I'm using WIX toolset to build an installer for my product. I would like to place the question mark icon next to Edit to show the tooltip with the explanation of why this value is needed. I've tried to do it with Icon, Bitmap, and Text, but hovering mouse on them doing nothing. My code is: <Control Id="EditToBeExplained" Type="Edit" X="40" Y="65" Width="220" Height="15" Property="IMPORTANT_PROPERTY" Text="{80}" ToolTip="Used for very important stuff."></Control> <Control Id="ExplanationIcon"

How to extract ProductCode from msi package?

吃可爱长大的小学妹 提交于 2021-01-02 05:22:04
问题 How to extract ProductCode from msi package? I want to use it later to uninstall msi via msiexec as described here 回答1: I can think of dozens of ways to do it. What programming languages do you currently use and/or comfortable with? Take a look at Execute SQL Statements You could use WiRunSQL.vbs ( provided in the Platform SDK ) to run the command: cscript /nologo WiRunSQL.vbs FOO.msi "SELECT Value FROM Property WHERE Property = 'ProductCode'" 回答2: I wrote a Powershell function that I use