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