Jump to content

Create folder on C:\Program Files\MyApp on Win8


Luigi
 Share

Recommended Posts

I am lost...

I need execute some functions and one this is:
"create a folder in C:Program FilesMyApp And C:Program Files (x86)MyApp", but I can't... on Windows 8 x64 on normal account (the installer can ask the login and password administrator's account)"

I try disable UAC: does not work and not recomended...

 

Someone can help-me?

Detefon

Visit my repository

Link to comment
Share on other sites

  • Moderators

This works for me (once compiled, of course). Is it not working for you?

#pragma compile(ExecLevel, requireAdministrator)

$oFolder = DirCreate("C:\Program Files\MyApp")

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

  • Moderators

Are you trying it compiled, or from the SciTE console?

Do you get the UAC prompt?

"Not yet...." doesn't tell us much.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...