Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WSH script to create a shortcut doesn't work on Vista
Message
From
16/04/2007 10:04:18
 
 
To
16/04/2007 09:25:01
Emerson Reed
Folhamatic Tecnologia Em Sistemas
Americana - São Paulo, Brazil
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01215705
Message ID:
01216210
Views:
27
>> loWSH.SpecialFolders("AllUsersStartup") returns
>> C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup on Vista.
>> That folder is a protected resource, so non-admin users can't write to it.
>> Even though you think the user has administrative rights, they don't
>> really unless they run your application as administrator (ie. right-click
>> and choose Run as Administrator). I know it sounds confusing, but it's
>> explained well in http://msdn2.microsoft.com/en-us/library/aa905330.aspx.
>>
>>This type of task is best done in your installer.
>
>Hi Doug!
>Hurrah! Found an alternative solution.
>Kudos for you!
>
>In the "Installer Detection" section of the link that you pointed me, has an explanation about how Vista identifies an installer and one of them is check if filename includes keywords such as "install," "setup," and "update."
>
>So, if I simply change my exe name to Install.exe it could work?
>Voila! It works!

Gosh! If this really works, the whole VISTA security control is the lamest thing I know about...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform