Posts

Showing posts with the label windows-installer

Create MSI and Enforce All Users with Visual Studio

Image
Create MSI and Enforce All Users with Visual Studio I have created an installer using Visual Studio 2015 (with the Visual Studio installer addon). The goal is to always run the APP with the same local resources, regardless of who is logged on, therefore we target [CommonAppDataFolder] (C:ProgramData... on Win10). The installer works just fine placing all shared resources where we want them. But the generated MSI provides the option to install as "everyone" or just the "just me" We want to grey out the option to install as "just me". Is there a way to do this from within Visual Studio as part of the build process for the MSI. I see some solutions that involve running MSIEXEC with different parms eg, ALLUSERS , but I am wondering if there is a way to set this up to occur automatically in Visual Studio. Thank you. 2 Answers 2 The project Properties window (NOT pr...

MSI Installer fails with error :Assembly Error:The parameter is incorrect

MSI Installer fails with error :Assembly Error:The parameter is incorrect I have created an MSI installer using Wix toolset (version 3.11) and the installer works fine on all other servers. But on AWS instances with OS, Windows server 2012 R2 installer fails with error Assembly Error:The parameter is incorrect. Assembly Error:The parameter is incorrect. Installer verbose log file lines which i felt are related to this error are below (complete log can not be attached) MSI (s) (88:8C) [08:50:05:010]: User policy value 'SearchOrder' is 'nmu' MSI (s) (88:8C) [08:50:05:010]: Adding new sources is allowed. MSI (s) (88:8C) [08:50:05:010]: Set LastUsedSource to: C:UsersShreesha.RaoDesktop18.0.2. MSI (s) (88:8C) [08:50:05:010]: Set LastUsedType to: n. MSI (s) (88:8C) [08:50:05:010]: Set LastUsedIndex to: 1. MSI (s) (88:8C) [08:50:05:010]: Executing op: End(Checksum=0,ProgressTotalHDWord=0,ProgressTotalLDWord=5851241) 06/29/2018 08:50:05.041 [3720]: Assembly Install: Failing w...

Running application from setup project not returning UI culture

Running application from setup project not returning UI culture I created a localized wpf apllication. To install the application in the system I used msi installer provided by visual studio. Upon completion of the installation i run the application by running the commit custom action command. In the application I have written the below code to get the current UI Culture commit custom action CultureInfo ci = CultureInfo.CurrentUICulture; string name = ci.Name; My systems current language is in Spanish , but on installing the application via the installer it is returning to en-US culture but should remain Spanish . Once i close the application and run it again using the desktop icon it returns to the correct culture. en-US Can anyone help why it is returning en-US on running application using MSI. Whether you see the installer running in Spanish or English ? – dhilmathy Jun 29 at 10:31 ...

Batch file is not executing before application uninstalled using WiX

Batch file is not executing before application uninstalled using WiX 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="INSTALLFOLDER" Impersonate="no" Execute="deferred" Return="asyncWait" /> <InstallExecuteSequence> <Custom Action="registeraddin" After="InstallFiles">NOT Installed</Custom> <Custom Action="unregisteraddinpostinstall" After="Ins...