Page 1 of 1

[X] Run $title$ Now in finish dialog creates a critical program issue

Posted: Mon Feb 06, 2023 7:27 pm
by JohnBalcom
1. We use [filename].dat files \ProgramData\ to store user settings.

2. These files are provided by both installed .cab files that are extracted to \ProgramData\ and installed default .dat files that are copied to \ProgramData\.

3. If the user chooses [x] Run $title$ Now in the finish dialog, all of these .dat files are set to Owner = Administrators and our app can't write to these files. See Bad Owner image.
Bad Ownder.png
Bad Ownder.png (109.98 KiB) Viewed 2888 times


4. If the user turns off [ ] Run $title$ now, these .dat files are created with Owner = [user name[] and our app can write to them just fine. See Correct Owner image.
Correct Owner.png
Correct Owner.png (105.21 KiB) Viewed 2888 times


The project is in InstallAwareApp.zip
InstallAwareApp.zip
(3.91 MiB) Downloaded 231 times

Re: [X] Run $title$ Now in finish dialog creates a critical program issue

Posted: Tue Feb 07, 2023 6:58 pm
by JohnBalcom
Figured it out. Using Run Program As instead of Run Program.