windows-installer

Stop windows service before perform the uninstallation

£可爱£侵袭症+ 提交于 2021-02-20 06:49:11
问题 I have an installer that installs few components including windows service, after it installed it'll start the service that installed onto the system using CustomAction. The problem when I uninstall the application, the installer asks to close the application before continue. I created a custom action that will stop the service, and I scheduled it with Uninstall actions. But its not executed until I press OK for the error dialog after manually stop the service. It failed on Win7, but I tested

Stop windows service before perform the uninstallation

假装没事ソ 提交于 2021-02-20 06:47:05
问题 I have an installer that installs few components including windows service, after it installed it'll start the service that installed onto the system using CustomAction. The problem when I uninstall the application, the installer asks to close the application before continue. I created a custom action that will stop the service, and I scheduled it with Uninstall actions. But its not executed until I press OK for the error dialog after manually stop the service. It failed on Win7, but I tested

Passing double quotes through PowerShell + WinRM

我的梦境 提交于 2021-02-19 03:08:31
问题 I am using this code to execute remote code (MSI installs) on a server. Passing double quote through the script is just not working. I tried two variations as given below (#3 and #4) along with the outputs. Input #1 (Simple case to test double quotes in the command) powershell.exe -inputformat none -File client.ps1 -target 1.2.3.4 -port 5985 -password "pass" -username "user" -command "echo hello" Output (Works) hello Input #2 (Understandable, this won't work) powershell.exe -inputformat none

Passing double quotes through PowerShell + WinRM

六月ゝ 毕业季﹏ 提交于 2021-02-19 03:07:12
问题 I am using this code to execute remote code (MSI installs) on a server. Passing double quote through the script is just not working. I tried two variations as given below (#3 and #4) along with the outputs. Input #1 (Simple case to test double quotes in the command) powershell.exe -inputformat none -File client.ps1 -target 1.2.3.4 -port 5985 -password "pass" -username "user" -command "echo hello" Output (Works) hello Input #2 (Understandable, this won't work) powershell.exe -inputformat none

Passing double quotes through PowerShell + WinRM

╄→гoц情女王★ 提交于 2021-02-19 03:04:46
问题 I am using this code to execute remote code (MSI installs) on a server. Passing double quote through the script is just not working. I tried two variations as given below (#3 and #4) along with the outputs. Input #1 (Simple case to test double quotes in the command) powershell.exe -inputformat none -File client.ps1 -target 1.2.3.4 -port 5985 -password "pass" -username "user" -command "echo hello" Output (Works) hello Input #2 (Understandable, this won't work) powershell.exe -inputformat none

Installshield not updating related DLLs on minor upgrade

偶尔善良 提交于 2021-02-18 08:04:06
问题 I'm currently working with InstallShield to deploy a .NET Winforms app. I am new to InstallShield and have not enjoyed the learning curve. The Winforms app has three related DLL's which are not getting updated during a minor upgrade. For a minor upgrade I am changing the version from 1.0.001 to 1.0.002 for example. The package code is being changed for each build automatically. I have tried adding the dll's to the [INSTALLDIR] and setting the property to "always overwrite". For some reason

Problem with modifying an MSI database property

牧云@^-^@ 提交于 2021-02-17 05:13:51
问题 I need to modify the UpgradeCode property of the Upgrade MSI table via C#. This code works ok with other tables' properties, but throws an error when I'm trying to modify these. using (var database = new Database(TEMPDATABASE, DatabaseOpenMode.Direct)) { string upgradeCode = Guid.NewGuid().ToString("B").ToUpper(); database.Execute("Update `Upgrade` Set `Upgrade`.`UpgradeCode` = '{0}'", upgradeCode); } The error is: Microsoft.Deployment.WindowsInstaller.InstallerException: 'Function failed

Problem with modifying an MSI database property

亡梦爱人 提交于 2021-02-17 05:12:30
问题 I need to modify the UpgradeCode property of the Upgrade MSI table via C#. This code works ok with other tables' properties, but throws an error when I'm trying to modify these. using (var database = new Database(TEMPDATABASE, DatabaseOpenMode.Direct)) { string upgradeCode = Guid.NewGuid().ToString("B").ToUpper(); database.Execute("Update `Upgrade` Set `Upgrade`.`UpgradeCode` = '{0}'", upgradeCode); } The error is: Microsoft.Deployment.WindowsInstaller.InstallerException: 'Function failed

Problem with Wix uninstall using CustomAction

戏子无情 提交于 2021-02-16 20:24:31
问题 I've created a very simple MSI which copies some files to the ProgramFiles directory and while installing calling to custom actions found in a binary written in C#. While installing, I can easily call any custom action I want. For example I've created an installation step where the user should enter a license, and after confirming the license it is checked against a server using logic written inside C# custom action. But, when uninstalling, every time I add a custom action (even if it does

Problem with Wix uninstall using CustomAction

本秂侑毒 提交于 2021-02-16 20:24:08
问题 I've created a very simple MSI which copies some files to the ProgramFiles directory and while installing calling to custom actions found in a binary written in C#. While installing, I can easily call any custom action I want. For example I've created an installation step where the user should enter a license, and after confirming the license it is checked against a server using logic written inside C# custom action. But, when uninstalling, every time I add a custom action (even if it does