Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WSH script to create a shortcut doesn't work on Vista
Message
 
 
À
16/04/2007 09:25:01
Emerson Reed
Folhamatic Tecnologia Em Sistemas
Americana - São Paulo, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
01215705
Message ID:
01216210
Vues:
25
>> 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...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform