wix3.6

WiX v3.6 PermissionEx - Sddl attribute required?

夙愿已清 提交于 2019-12-11 07:28:46
问题 Really? I am trying to do something like this - <PermissionEx User="Authenticated Users" GenericAll="yes" ServiceChangeConfig="yes" ServiceEnumerateDependents="yes" ChangePermission="yes" ServiceInterrogate="yes" ServicePauseContinue="yes" ServiceQueryConfig="yes" ServiceQueryStatus="yes" ServiceStart="yes" ServiceStop="yes" /> and it is giving me The required attribute 'Sddl' is missing. Not familiar with Sddl. How do I create an Sddl string to match the above permissions? 回答1: PermissionEx

Force user to reboot machine with Burn

跟風遠走 提交于 2019-12-11 03:52:43
问题 I have a bootloader that I created with WiX 3.6/Burn and was wondering if there was a command similar to <ExitCode Behavior="forceReboot"/> that would execute only on uninstall after everything was executed in the <chain> tag. 回答1: You can put the ScheduleReboot action in one of your MSIs and condition the action to run on unistall. Burn will respect the restart request and inform the user a restart is required at the end. 来源: https://stackoverflow.com/questions/13979073/force-user-to-reboot

In Wix, why can I not get XmlConfig, uninstall, delete to work?

℡╲_俬逩灬. 提交于 2019-12-11 01:45:18
问题 I need to remove elements from an existing config file on uninstall. Here is the relevant Wix: <Component Id="Dynamics.exe.config" DiskId="1" Permanent="yes"> <File Id="AppConfig" Name="Dynamics.exe.config" Source="$(var.ProgramFilesDir)\Microsoft Dynamics\GP2010\Dynamics.exe.config" KeyPath="yes" /> <util:XmlConfig Id="AppSettings" Action="create" ElementPath="//configuration" Name="appSettings" File="[#AppConfig]" Sequence="1" VerifyPath="appSettings" Node="element" On="install"/> <util

WIX edit binary file in custom action

牧云@^-^@ 提交于 2019-12-10 21:34:45
问题 I'm trying to do the following: during install open and edit sql file via custom action save edited changes and execute it during install. In my product.wxs I have the following: <Binary Id="SqlScriptSQLAuthentication" SourceFile="$(sys.SOURCEFILEDIR)\MyDb.sql" /> <Component Id='SqlComponent.SQLAuthentication' Guid='665D641C-3570-4b96-9CA5-2B4C12594A35' KeyPath='yes'> <Condition><![CDATA[USEINTEGRATEDSECURITY<>1]]></Condition> <sql:SqlDatabase Id='SqlDatabase.SQLAuthentication' Database='

WIX Property as Integer

懵懂的女人 提交于 2019-12-10 21:02:04
问题 I am trying to set a a property to configure the IIS:Website ConnectionTimeout value on a new website that gets created during setup. However I am unable to, as the value for ConnectionTimeout must be an integer, not string. In my product.wxs I have the following: <Control Id="IisConnectionTimeoutLabel" Type="Text" X="45" Y="164" Width="100" Height="15" TabSkip="no" Text="Connection Timeout (sec):" /> <Control Id="IisConnectionTimeoutEdit" Type="Edit" X="45" Y="176" Width="220" Height="18"

WIX - How to use RemoveFiles

余生颓废 提交于 2019-12-10 18:57:51
问题 We have multiple configuration files. Based on the environment selected, right file gets copied and the rest of the files should get deleted. I am using RemoveFile but that doesn't delete anything or may be I am not using it right. Can someone give an example to delete *.config from [INSTALLDIR] during the install, after all files have been copied. 回答1: In the example below RemoveFile is used to delete all icons ( .lnk extension) on uninstallation, also the parent folder will be removed by

Open readme.txt at end of installatin failed in WiX

夙愿已清 提交于 2019-12-10 18:31:15
问题 We would like to open a notepad file at end of the installation. Hence I copied a readme.txt and placed under some local drive during installation then tried to open from that location. But, it is giving "The system cannot find the path specified" issue. However, it was working when I gave the local hard coded path as like "d:\readme.txt". <Directory Id='ProgramFilesFolder' Name='PFiles'> <Directory Id='INSTALLDIR' Name='SimpleMvvmToolkit_2012'> </Directory> </Directory> <Property Id='NOTEPAD

WIX | Remove *.config file on install

浪子不回头ぞ 提交于 2019-12-10 10:14:25
问题 I have multiple config files (for different environments). During install user get to select the environment, and based on that correct files are copied. I want to delete the extra files that are not used. I am using but it doesn't seem to be working. I don't get any errors as such, in the log I see action getting executed but files are not deleted. Can anyone please point what I am doing wrong? <Component Id="RemoveFiles" Guid="C5D634C2-744E-4CA5-BB44-F3DE88482AB5"> <RemoveFile Id=

How to use MajorUpgrade and RemoveFeatures to remove only specific features and still un-install the previous version of the product

会有一股神秘感。 提交于 2019-12-10 08:40:47
问题 I swapped to Wix 3.6 from the Microsoft Installer that was packaged with VS 2010. I am trying to release a seamless upgrade to our users by using the <MajorUpgrade/> Tag, however I have one feature that I do not want to be un-installed while performing this major upgrade. As seen below I have RemoveFeatures="[ProductFeature]" which will result in only the ProductFeature being removed and the DataFeature will remain, but this results in the entry not being removed from the "Programs and

WiX - commit more than one Property to deferred Custom Action

[亡魂溺海] 提交于 2019-12-10 02:56:38
问题 I have a problem with my WiX installer in contact with deferred / immediate custom actions. Please excuse my english. I want to surrender some properties, entered by the user, to a deferred custom action. I know that I need a immediate custom action and "CustomActionData" to do that. I´ve implement it at this way. The binary: <Binary Id='myAction' SourceFile='.\TemplateGeneration.CA.dll'/> The immediate custom action: <CustomAction Id='Datenuebergabe' Property='DoSomething' Value=