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

Tks a lot.
Emerson Santon Reed
"One Developer CAN Make a Difference. A community CAN make a future." - Craig Boyd
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform