windows-installer

WIX Installer: Prevent installation on Windows Server 2012 R2

五迷三道 提交于 2020-01-27 04:28:19
问题 I have a WIX project that must only be installed on Windows Server 2016 (or newer). Looking at Microsoft documentation, VersionNT for: Windows Server 2016 is 603, Windows Server 2012 is 602. The VersionNT for Windows Server 2012R2 has never been mentioned. When I use below line of code: <Condition Message="!(loc.RequireServer2016)"><![CDATA[INSTALLED OR (VersionNT >= 603)]]></Condition> it still lets me install on Windows Server 2012R2. How can I limit the installation of my software to only

Uninstallation condition for WIX

北慕城南 提交于 2020-01-25 20:19:07
问题 For installation, we have a property " Install " which we can use in conditions to execute if its undergoing installation. Do we have a similar property for Uninstallation ? 回答1: You can use REMOVE~="ALL" to detect a full uninstallation . An uninstall performed as part of a major upgrade can be detected via the UPGRADINGPRODUCTCODE property. Here is some further advice and some help resources : here is a "MSI Conditions Cheat Sheet" to help you get the complicated MSI conditions for custom

Remove xmlns=“” attribute when adding Reference element into csproj

两盒软妹~` 提交于 2020-01-25 12:21:30
问题 I try to programmatic add the reference of dll into csproj file at time of installation service through the MSI Installer. <Reference Include="TestProject"> <HintPath>..\..\TestProject.dll</HintPath> </Reference> I put below line of source code of add node into protected override void OnAfterInstall(IDictionary savedState) of ProjectInstaller.cs var refnode = xml.CreateElement("Reference"); var attribute = xml.CreateAttribute("Include", null); attribute.Value = "TestProject"; refnode

Access to path denied while reading a dll from Program Files which is actually got from a nuget package

安稳与你 提交于 2020-01-25 08:39:05
问题 Access to path denied error is encountered in Program files (x86) , while working with a DLL that is got from nuget package: AODL for reading ODF files - https://www.nuget.org/packages/AODL/ after I created a MSI file using SETUP Project In the code, I don't suspect the file creation part for I create this file in the user chosen file conversion path but NOT IN PROGRAM FILES folder path : File.WriteAllText(targetFileName, sb.ToString(), Encoding.UTF8); That's why I simply suspect the DLL,

Installshield : custom action to uninstall previous version and install the latest version

自闭症网瘾萝莉.ら 提交于 2020-01-25 08:28:05
问题 My requirements are as follows: If an application with version e.g. 12.0 is installed at C:\Folder1 and a setup with version 13.0 is to be installed in the folder C:\Folder1 then the setup of version 13.0 should uninstall 12.0 version silently and install the latest version 13.0 If an application with version e.g. 12.0 is installed at C:\Folder1 and a setup with version 13.0 is to be installed in the folder C:\Folder200 then the setup of version 13.0 should install the latest version and also

Wix Toolset - Cannot create/install patch with fewer files/components than the original msi package

会有一股神秘感。 提交于 2020-01-25 07:31:26
问题 I have few locations on the field for which the initial .msi is same having about 2000 files (of multiple file types). However, I will have to send patches to few of the locations depending on the need so the patch should consist of fewer files (sometimes only 1 file as a fix). I am unable to create a patch (.msp) with just one single file or few files that I want to add/update but have to include all the original set of files as well. Can this be accomplished by any means? Please help !!

WixUI_Mondo and WixUI_InstallDir

被刻印的时光 ゝ 提交于 2020-01-25 00:05:06
问题 Is it possible to combine WixUI_Mondo and WixUI_InstallDir? I need a dialog where the user is able to change the destination folder then proceed to selecting instalation type. Please help, I am new to Wix toolset. Thanks! 回答1: Mondo : I might be missing something essential you need here, but the Mondo dialog set does have a dialog like that - 3rd in sequence, select "Custom" . Maybe this is all you need?: For the Browse... button to be work (not be grayed out) you must set the feature

The Windows Installer Service could not be accessed. This can occur if the Windows Installer is not correctly installed

好久不见. 提交于 2020-01-24 19:31:06
问题 I have an issue when I tried to install an EXE file on windows server 2012 R2. When I tried to execute the EXE or MSI file I got below error, "The Windows Installer Service could not be accessed. This can occur if the Windows Installer is not correctly installed. Contact your support personnel for assistance." I tried the following methods to fix the issue but nothing worked. Method 1: I tried to unregister and re-register msiexec file %windir%\system32\msiexec.exe /unregister %windir%

The Windows Installer Service could not be accessed. This can occur if the Windows Installer is not correctly installed

旧城冷巷雨未停 提交于 2020-01-24 19:31:04
问题 I have an issue when I tried to install an EXE file on windows server 2012 R2. When I tried to execute the EXE or MSI file I got below error, "The Windows Installer Service could not be accessed. This can occur if the Windows Installer is not correctly installed. Contact your support personnel for assistance." I tried the following methods to fix the issue but nothing worked. Method 1: I tried to unregister and re-register msiexec file %windir%\system32\msiexec.exe /unregister %windir%

Is it possible to passively install an .EXE but still show the GUI using Powershell?

…衆ロ難τιáo~ 提交于 2020-01-23 17:27:09
问题 Pretty much what the title says, is it possible to passively/silently install an .EXE using Powershell but still have the installer GUI show? I'd want the next's "clicked" automatically but would still like the GUI to be shown as sort of a progress indicator. 回答1: UPDATE : There is a Powershell module for Windows Installer. It can help to run msiexec.exe equivalent commands in easier fashion than to deal with Powershell's quirks. MSI? : If this is an MSI inside an EXE wrapper, then the below