windows-installer

How to delete a file after installation is over in c#?

浪尽此生 提交于 2019-12-31 06:25:54
问题 I am developing a windows application in .NET Framework using c#. I want to run two exe files at the time of installation of my application, one after the other, in a specific order. I know that I can run an exe at the time of installation, by using the custom action, but I don't know how to run it in a specific order. I am new to c#, so a detailed walk through is prefered. 回答1: using Custom action you can perform the same, you need to use "Commit" option of custom action for this 来源: https:/

Wix property evaluation

让人想犯罪 __ 提交于 2019-12-31 05:14:08
问题 How to use FileSearch result as condition in Component section. I want to get something like this: <Property Id=\"CONFIG_XML_EXISTS\"> <DirectorySearch Id="CheckForConfigXml" Path="[INSTALLDIR]\">' <FileSearch Id="ConfigXmlSearch" Name="config.xml" /> </DirectorySearch> </Property> ... <Component Id="c_DefaultConfig.xml" Guid="{1AAB0AFD-B763-4A55-8585-B0AD4D8CE23C}"> <File Id="f_default_config.xml" Name="default-config.xml" Source="$(var.SourceRoot)\config.xml"/> <Condition>CONFIG_XML_EXISTS<

How to include inherited permissions when specifying permissions for a file installed by Wix / Windows Installer?

隐身守侯 提交于 2019-12-31 05:06:54
问题 The Wix source code that I feed to the Wix compiler to build an MSI package for my application, contains the following PermissionEx directive, part of a file component which Windows Installer should install with additional (to those that should be inherited by default) permissions: <PermissionEx Sddl="D:AR(A;;FW;;;BU)" /> As you can surmise, I intend to install the file with inherited permissions ("AR") included in its ACL and on top of that allow members of the Built-in Users group ("BU") to

How to include inherited permissions when specifying permissions for a file installed by Wix / Windows Installer?

青春壹個敷衍的年華 提交于 2019-12-31 05:06:14
问题 The Wix source code that I feed to the Wix compiler to build an MSI package for my application, contains the following PermissionEx directive, part of a file component which Windows Installer should install with additional (to those that should be inherited by default) permissions: <PermissionEx Sddl="D:AR(A;;FW;;;BU)" /> As you can surmise, I intend to install the file with inherited permissions ("AR") included in its ACL and on top of that allow members of the Built-in Users group ("BU") to

MSI Failure to Uninstall

坚强是说给别人听的谎言 提交于 2019-12-31 04:32:08
问题 I am sorry if this is a repeat but I cannot find what I am looking for by way of the Google (mostly because I don't know what to ask). tl;dr - Is there a way to make my C# VS Installer project ignore any versioning errors or missing files of previous installs during updated version installs? Long Version: I have created a C# application that includes 6 files (3 programs, 2 services, and a DLL). I am using a MSI deployment project in VS to create and distribute these files, register the DLL,

Merge module files into different locations

六月ゝ 毕业季﹏ 提交于 2019-12-31 04:06:14
问题 I'd like to parse merge module files into two different locations. Is it possible? <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="MergeRedirectFolder"> <Component Id="LoggerClient" Guid="*"> <File Id="log4net" Name="log4net.dll" Source="..\..\_Release\log4net.dll" KeyPath='yes' /> <File Id="LoggerLibrary" Name="LoggerLibrary.dll" Source="..\..\_$(var.Configuration)\LoggerLibrary.dll" /> <File Id="app.config" Name="app.config.xml" Source="..\..\_Release\app.config.xml" /> <File Id=

How exactly are files removed during MSI uninstall?

孤人 提交于 2019-12-30 11:18:11
问题 I'd like to know what exactly happens to installed files / components during the uninstall procedure. For the install and upgrade procedure, reliable documentation exists at MSDN (see File Versioning Rules and Default File Versioning, for example). Anyways, I couldn't find a documentation of the uninstall remove logic at MSDN or at WiX´s documentation. So, my question is simple: I would like to know when exactly a file is removed from the system (which isn't always the case - for example if a

How to deploy multiple projects in a single MSI?

好久不见. 提交于 2019-12-30 10:35:36
问题 I have 3 projects in my solution that I want to deploy. Is there a nice and quick way of using Visual Studio's setup projects to deploy all three apps using one MSI and letting the user decide which apps he wants to install during the install process? I have setup projects for the 3 individual apps, I also have an overarching setup project that has the output of those other three projects. Am I on the right track or is there a better way? 回答1: I think you probably want merge modules. Accrding

How to deploy multiple projects in a single MSI?

余生颓废 提交于 2019-12-30 10:35:04
问题 I have 3 projects in my solution that I want to deploy. Is there a nice and quick way of using Visual Studio's setup projects to deploy all three apps using one MSI and letting the user decide which apps he wants to install during the install process? I have setup projects for the 3 individual apps, I also have an overarching setup project that has the output of those other three projects. Am I on the right track or is there a better way? 回答1: I think you probably want merge modules. Accrding

Chained msi Installer with Electron

a 夏天 提交于 2019-12-30 07:33:11
问题 I'm new to Electron and I am building an app that I would like to install on Windows. I read the documentation on how to distribute your app in Electron's docs, and I know about: electron-forge electron-builder electron-packager Currently I'm working with: "electron-builder-squirrel-windows": "^19.20.0", "electron-builder": "^19.20.0", "electron": "^1.6.11" Given this, I was able to create a Setup.exe to install my App, BUT I was not able to create any UI for the installation process. I want