installer

“SystemFolder” in WIX and C#

风格不统一 提交于 2019-12-23 07:25:54
问题 An installer I have created with WiX installs a DLL using the SystemFolder variable, as well as a C# app into another folder. I want to directly reference the DLL from the app. Do I need to look up registry keys to find where the SystemFolder is? 回答1: No, you don't need to query the registry. Windows Installer has a series of built-in properties that automatically resolve to special well known locations such as SystemFolder. See System Folder Properties for more general information. For WiX,

“SystemFolder” in WIX and C#

狂风中的少年 提交于 2019-12-23 07:25:40
问题 An installer I have created with WiX installs a DLL using the SystemFolder variable, as well as a C# app into another folder. I want to directly reference the DLL from the app. Do I need to look up registry keys to find where the SystemFolder is? 回答1: No, you don't need to query the registry. Windows Installer has a series of built-in properties that automatically resolve to special well known locations such as SystemFolder. See System Folder Properties for more general information. For WiX,

How to Correctly show component sizes in inno component page

こ雲淡風輕ζ 提交于 2019-12-23 07:05:50
问题 I am not getting the correct memory sizes of all the component selected in the component page. Please give me a solution how the total memory selected for all the components should be correct? The memory size is displayed on the label at the bottom of the page. 回答1: If in the [files] section check flags are used, not all flags can be processed by Inno-setup. Especially if you created check flags which rely on the [code] section. In my setup a created an array of all files. In this record I

Changing app.configuration file during installation process with visual studio installer fails: Could not load file or assembly 'EntityFramework'

馋奶兔 提交于 2019-12-23 05:24:02
问题 Project Info: We are creating an installer project that allows users to choose a servername and databasename. After installation of the main program a corresponding database will be created. Installer project : Has an additional UI screen with two textboxes, containing servername and databasename. An custom action will be executed on installation and has the servername and databasename defined as custom action data. Main application: An installer class wires the after-installation event. This

Windows installer upgrade code generated from command line

跟風遠走 提交于 2019-12-23 05:19:42
问题 I am using the windows installer to install/upgrade an installation. Using Visual Studio I can manually change the version number and then select yes when asked to change the ProductCode. This creates an installer that is capable of overwriting the existing installation provided that the following properties are set on the installer project RemovePreviousVersions True DetectNewerInstalledVersion True Now in my build server I can change the version number to the appropriate new version in the

WiX register assemblies for COM Interop

拜拜、爱过 提交于 2019-12-23 04:43:33
问题 I'm really struggling with WiX. I have .NET assemblies to install that require registration for COM Interop, AND they must be registered with another framework that requires calling a Register() method in a .NET assembly that's in the GAC. This registration method is a 'black box' with a hidden storage mechanism so I can't perform this operation declaratively. I get that the declaritive approach is best for COM registration, but I have two problems with using heat.exe: RegAsm works, but Heat

How to run an installed file after installation?

…衆ロ難τιáo~ 提交于 2019-12-23 04:18:09
问题 I have a setup project in c#. i want that setup run 2 exe file from the installed files after installation. How can i set which file to be run after installation. Any suggestion would be highly appriciated 回答1: Add a custom action as below... After the install complete, it should run the application automatically. Launching Your Application After Install using Visual Studio 来源: https://stackoverflow.com/questions/7460628/how-to-run-an-installed-file-after-installation

How to style the installer?

无人久伴 提交于 2019-12-23 03:53:05
问题 I'm developing an AIR app for a client, and they've had a gfx designer edit some graphics for the app. He's also asked that the installer be changed from this: To this: (ignore the XP window style) Is that possible? I haven't found anything relevant from Googling or searching SO. 回答1: That's not possible, the installation of .air packages is handled by the AIR runtime, you cannot change its appearance. Native packages might be standalone installers themselfs, not 100% sure, but their style

Locating installer paths in c#

你离开我真会死。 提交于 2019-12-23 02:33:05
问题 In VS2008 I have writen a c# service, an installer and created a setup package to install it. The service needs to load an xml file to operate. Where is the best place to put this file in the various filesystem folders offered by the VS setup project, and how do I then refer to these paths from my code? Thanks [I should point out the the service runs as LocalService, which means that the applicationdata folder offered by the "User's Application Data Folder" item in the VS setup project is not

Disable 'next' button on the component page when there are no selected components

别等时光非礼了梦想. 提交于 2019-12-23 02:31:41
问题 I'm using NSIS 2.46 to create a installer for my windows application, I have a component page with 12 checkboxes, that is 12 sections in my NSIS code, now I want to disable the 'Next' button if none of the sections are checked by the user, I'm using this code: Somehow it doesn't accept R registers above R9... SectionGetFlags ${section11} $R10 SectionGetFlags ${section12} $R11 The compiler error I'm getting is Please tell me how to disable the 'Next' button if there are more than 10 components