Vista and Run App privileges

Got a problem you cannot solve? Try here.
Post Reply
bradak
Posts: 9
Joined: Tue Oct 31, 2006 3:48 pm

Vista and Run App privileges

Post 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
bradak
Posts: 9
Joined: Tue Oct 31, 2006 3:48 pm

Post 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.
Post Reply