build: windows Installer runs Deskflow as a user not admin post install, after Finish

This commit is contained in:
sithlord48
2025-03-29 10:14:30 -04:00
committed by Chris Rizzitello
parent d2bf5e63e4
commit 8fbcf907b2

View File

@ -39,6 +39,13 @@
<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
Id="CheckVCRedist"
BinaryRef="CustomDLL"
@ -51,8 +58,10 @@
<CustomAction
Id="RunDeskflow"
ExeCommand="Deskflow"
FileRef="CM_FP_deskflow.exe"
ExeCommand="[INSTALL_ROOT]deskflow.exe"
Directory="INSTALL_ROOT"
Execute="immediate"
Impersonate="yes"
Return="asyncNoWait" />
<InstallExecuteSequence>
@ -64,10 +73,6 @@
Action="ShowVCRedistError"
Before="InstallInitialize"
Condition="NOT Installed AND (NOT VC_REDIST_INSTALLED OR NOT VC_REDIST_VERSION_OK)" />
<Custom
Action="RunDeskflow"
OnExit="success"
Condition="NOT Installed" />
</InstallExecuteSequence>
</CPackWiXFragment>
</CPackWiXPatch>