build: windows Installer runs Deskflow as a user not admin post install, after Finish
This commit is contained in:
parent
d2bf5e63e4
commit
8fbcf907b2
1 changed files with 11 additions and 6 deletions
|
|
@ -39,6 +39,13 @@
|
||||||
|
|
||||||
<Binary Id="CustomDLL" SourceFile="@CMAKE_CURRENT_BINARY_DIR@/wix-custom.dll" />
|
<Binary Id="CustomDLL" SourceFile="@CMAKE_CURRENT_BINARY_DIR@/wix-custom.dll" />
|
||||||
|
|
||||||
|
<UI>
|
||||||
|
<Publish Dialog="ExitDialog"
|
||||||
|
Control="Finish"
|
||||||
|
Event="DoAction"
|
||||||
|
Value="RunDeskflow"
|
||||||
|
Condition= "NOT Installed" />
|
||||||
|
</UI>
|
||||||
<CustomAction
|
<CustomAction
|
||||||
Id="CheckVCRedist"
|
Id="CheckVCRedist"
|
||||||
BinaryRef="CustomDLL"
|
BinaryRef="CustomDLL"
|
||||||
|
|
@ -51,8 +58,10 @@
|
||||||
|
|
||||||
<CustomAction
|
<CustomAction
|
||||||
Id="RunDeskflow"
|
Id="RunDeskflow"
|
||||||
ExeCommand="Deskflow"
|
ExeCommand="[INSTALL_ROOT]deskflow.exe"
|
||||||
FileRef="CM_FP_deskflow.exe"
|
Directory="INSTALL_ROOT"
|
||||||
|
Execute="immediate"
|
||||||
|
Impersonate="yes"
|
||||||
Return="asyncNoWait" />
|
Return="asyncNoWait" />
|
||||||
|
|
||||||
<InstallExecuteSequence>
|
<InstallExecuteSequence>
|
||||||
|
|
@ -64,10 +73,6 @@
|
||||||
Action="ShowVCRedistError"
|
Action="ShowVCRedistError"
|
||||||
Before="InstallInitialize"
|
Before="InstallInitialize"
|
||||||
Condition="NOT Installed AND (NOT VC_REDIST_INSTALLED OR NOT VC_REDIST_VERSION_OK)" />
|
Condition="NOT Installed AND (NOT VC_REDIST_INSTALLED OR NOT VC_REDIST_VERSION_OK)" />
|
||||||
<Custom
|
|
||||||
Action="RunDeskflow"
|
|
||||||
OnExit="success"
|
|
||||||
Condition="NOT Installed" />
|
|
||||||
</InstallExecuteSequence>
|
</InstallExecuteSequence>
|
||||||
</CPackWiXFragment>
|
</CPackWiXFragment>
|
||||||
</CPackWiXPatch>
|
</CPackWiXPatch>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue