I am sure that the answer is probably staring me in the face, but frustration has set in I can't see the forest for the trees... so, swallowing my pride, here goes...
On the 'Finish' dialog there is a 'Run Now' checkbox.
When I run my compiled installation, the 'Run $Title$ Now' checkbox is always enabled. Enabled appears to be the default mode, however in this case I would like the checkbox default to be 'not checked' (disabled). There is no 'Unchecked' Property Value available for this control (there is only a 'Checked' Property Value available), so obviously that is not the solution. I have the 'Checked' property = 'False' and the 'State' property = 'cbUnchecked', yet when the 'Finish' dialog appears at the conclusion of an install the darned 'Run Now' checkbox is always enabled (checked).
I cannot find any MSI code that is enabling the Run Now checkbox. So what gives?
On all of my previous installs this has never been a issue because the default checkbox enabled behaviour was desired. However now that I need to change this, for the life of me I cannot figure out a way to do it.
Any help is greatly appreciated.
Steve
Uncheck the 'Run Now' checkbox...
Uncheck the 'Run Now' checkbox...
Last edited by Steve on Wed Jun 21, 2023 12:29 pm, edited 1 time in total.
Hi Chris,
Worked perfectly!
Thanks very much for your response.
For anyone following this thread I have included the code area affected. The "Set Variable RUNAPP to False" suggested by Chris is located third line down from the top.
Worked perfectly!
Thanks very much for your response.
For anyone following this thread I have included the code area affected. The "Set Variable RUNAPP to False" suggested by Chris is located third line down from the top.
Code: Select all
[DEFINE REGION: Finish Setup]
Comment: End of Installation
Set Variable RUNAPP to False
Hide Dialog
Display Dialog: finish, wait for dialog to return (modal)
if Variable SILENT Equals FALSE
if Variable REBOOTCOMPUTER Equals TRUE
if Variable SUCCESS Equals REBOOT
Reboot Computer
end
end
if Variable RUNAPP Equals TRUE
if Variable REMOVE Equals FALSE
if Variable SUCCESS Equals COMPLETE
Comment: TO-DO: Insert command that starts your application here
Run Program $TARGETDIR$\\myapp.exe
end
end
end
end
END REGION
-
- Posts: 32
- Joined: Tue Mar 10, 2009 12:10 pm
Thanks for codew
Steve - thanks for posting the code affected. Makes it a lot easier for everyone who is experiencing problems to understand solutions.
Cheers
Cheers
Re: Uncheck the 'Run Now' checkbox...
Hi,
I went into the same problem, luckily I was able to delete post with exact question. IMO it is not natural to change it inside script. I guess it is the way to extend possibilities of setup customization. I would add a note on Dialogs screen in User Interface branch, something like "dialogs behaviour like "run/restart now" can be configured using MSICode"
I went into the same problem, luckily I was able to delete post with exact question. IMO it is not natural to change it inside script. I guess it is the way to extend possibilities of setup customization. I would add a note on Dialogs screen in User Interface branch, something like "dialogs behaviour like "run/restart now" can be configured using MSICode"
best regards
Piotr Rezmer
Piotr Rezmer
Who is online
Users browsing this forum: No registered users and 30 guests