Posts

Showing posts with the label visual-studio-setup-proje

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...

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 ...