Page 1 of 1

Vista and Run App privileges

Posted: Fri Nov 03, 2006 5:59 pm
by bradak
I am testing on Vista RC1.

I run the InstallAware generated install. The vista UAC asks if I want to run the setup progam (my app isn't signed yet). I click to allow it. My setup proceeds correctly and installs as it should. It reaches the Finish dialog, and I select the "Run Title" check box, and then press "Finish". My application starts up. I create a document, and save it to disk, and exit the application.

Later I start my application from the Start Menu. I open the previous document, make a change, and try and save it. Error! It says I don't have permission to overwrite the file.

I'm guessing that my application is at "administrator" privilege when it is installing and launched. Later when I run the app, I'm at user level, and can't overwrite the file.

Have you heard of this? Is there anything I can do when launching the application from the script?

Thanks,
Brad

Posted: Fri Nov 03, 2006 6:44 pm
by bradak
After further testing, it's my fault. I wrote my document to "Program Files\\MyApp". You aren't supposed to do that on Vista. It did upgrade my access level, because of the install though. Anyway, consider this resolved.