windows-installer

After creating MSI Installer for WPF app in Visual Studio 2017, EXE does nothing

让人想犯罪 __ 提交于 2019-12-29 02:10:10
问题 I've used the Setup Project in Visual Studio for Console apps with no problems, however, until now, I've always ran any WPF apps I've created in Visual Studio. This is my first attempt at publishing one. I feel this would be pretty simple if I only knew what to do with my subfolders. I have many images that I use for buttons, a PNG for a logo, and two PowerShell scripts. Do I need to select more than just the Primary output? Here is the usage of the data for reference: The PowerShell Scripts

Restarting windows service during WIX upgrade

六月ゝ 毕业季﹏ 提交于 2019-12-29 02:09:22
问题 We have a windows service installed as a part of our msi WIX installer . During upgrade we are trying to just restart service instead of doing complete reinstall to safe guard the service user creds. A lot of posts discussed in this regard but nothing is conclusive. Tried out disabling DeleteServices during upgrade by doing below, <InstallExecuteSequence> <DeleteServices>NOT UPGRADINGPRODUCTCODE</DeleteServices> </InstallExecuteSequence> Note: The above code is in old MSI as well But still

What else do I need to show the license aside from WixUILicenseRtf?

十年热恋 提交于 2019-12-29 02:08:10
问题 In my wxs file, in the Product element, I added: <WixVariable Id="WixUILicenseRtf" Value="C:\Users\pupeno\...\src\main\deploy\package\windows\License.rtf" /> I think the file is being read because if I put a path that doesn't exist, the msi file is not generate. But, nothing is shown during the installation process. What else am I missing? I'm starting from the javafxpackager template, so, it looks something like this: <?xml version="1.0" encoding="utf-8"?> <!-- Customizing the wix template

MSIEXEC Silent Mode Installation

こ雲淡風輕ζ 提交于 2019-12-29 01:38:08
问题 How do I install to a non default web site with a silent MSIEXEC installation? 回答1: Given the lack of information in your question, all I can say is something like this: msiexec /i YOURPACKAGE.msi /qn If you need to pass parameters, you can define them on the commandline: msiexec /i YOURPACKAGE.msi /qn THISWEBSITE=http://example.com 来源: https://stackoverflow.com/questions/1358626/msiexec-silent-mode-installation

MSI Install Fails because “Another version of this product is already installed”

社会主义新天地 提交于 2019-12-28 14:43:44
问题 We install an application (MSI) using MSIEXEC with the following command line option: MsiExec.exe /x{code} /qn /liwearucmopvx+ C:\Log\UnInstall.tra MsiExec.exe /iC:\Source\App.msi /qn TARGETDIR=C:\Install ALLUSERS=1 /liwearucmopvx+ %C:\Log\Install.tra Most of the time this works, but sometimes the uninstall fails (not sure why yet, looking into the error). Anyways when this happens I get the following error during the re-install: Another version of this product is already installed.

How do I fix the upgrade logic of a wix setup after changing InstallScope to “perMachine”

谁说我不能喝 提交于 2019-12-28 13:21:23
问题 We use wix to create setups for our application. For the case where the user has already installed an older version of our application, we do a major upgrade with the MajorUpgrade XML element. This is all working as desired: if an older version is installed, it is upgraded transparently. If a newer version is present, the installer aborts with a clear message. However, I now want to change the InstallScope from "perUser" to "perMachine". Unfortunately this breaks the upgrade logic. The new

Are applications dependent on the environment where it was compiled?

ε祈祈猫儿з 提交于 2019-12-28 07:16:08
问题 We are having a System.BadImageFormatException in our MSI installers. I have already read about the target frameworks, but we already checked and it's targeting the correct framework ( .NET Framework 4.5 same with our QA machines). We have exactly the same source codes, but the results of the msi installer compiled by our 'build team' fails, but the msi installer compiled by us 'dev' works. Question is, does the environment where an application was built and compiled affects the output

Are applications dependent on the environment where it was compiled?

假装没事ソ 提交于 2019-12-28 07:16:02
问题 We are having a System.BadImageFormatException in our MSI installers. I have already read about the target frameworks, but we already checked and it's targeting the correct framework ( .NET Framework 4.5 same with our QA machines). We have exactly the same source codes, but the results of the msi installer compiled by our 'build team' fails, but the msi installer compiled by us 'dev' works. Question is, does the environment where an application was built and compiled affects the output

Is it possible to run a custom action only in repair mode

筅森魡賤 提交于 2019-12-28 07:05:11
问题 I need to run a custom action only during Repair. But I didn't find a valid condition to do so. If I specify a custom action with below condition, it runs in Modify mode as well as in Repair mode. Installed AND Not REMOVE I am using InstallShield 2012 spring. 回答1: Check the REINSTALL property. Conditional statement on your custom action should look like REINSTALL<>"" 回答2: For future reference check these cheat sheets: Installshield condition cheat sheet. How to add a WiX custom action that

Is there an alternative to GUID when using msiexec to uninstall an application?

浪尽此生 提交于 2019-12-28 06:54:32
问题 We're currently using a GUID to identify the application when running our uninstall script which contains msiexec. The problem I'm having is the GUID changes every time I install the latest version of the application, so I was wondering if there is a different way that I can identify our application running using msiexec? 回答1: The usual way that people get around the various ProductCode values in this situation is to start with the more constant UpgradeCode. Given the UpgradeCode, you can use