views:

1054

answers:

3

I'm working on an installer (using Wise Installer, older version from like 1999).

I'm creating a shortcut in the Programs group to an EXE. I'm also creating a shortcut on the Desktop.

If the install is run from an Admin account, then I create the shortcut on the Common Desktop and Common Program Group (i.e., read from the HKEY_LOCAL_MACHINE\Explorer\Shellfor All Users). If it's installed from a NonAdmin account, then I install to the HKEY_CURRENT_USER's desktop and Program Group.

Behavior

Install on:

XP NonAdmin - Desktop and Program Shortcuts install OK.

Vista Admin - Desktop & Program Shortcuts install OK.

Vista Non-Admin, UAC off- Desktop shortcut installs, but Program Shortcut does not. However, the Program group folder they're supposed to be installed to does get created.

At the end of the install, I launch the Program Group that has the shorcut. It launches in all of the above. I can manually drag a shortcut into that folder and it works just fine.

I'm bloody baffled.

I've tried installing some other commercial apps (Opera, Foxit, FireFox) Only FireFox will install under NonAdmin (and only if you select something other than Program Files, which I was aware is off limits to nonAdmin acounts). And FF doesn't install an Uninstall Icon nor Uninstall support from the Remove Programs.

I tried installing IE 7 and it requires Admin to install. It won't even install with temporarily elevated Admin.

Perhaps the idea is that you're not supposed to install software in Vista from a NonAdmin account?

A: 

i think shell for all users ONLY adds to all users for new users. i don't think it modifies existing users start menu.

Darren Kopp
Can you rephrase that. I'm not understanding it.
Clay Nichols
meaning, it will put the icon in the folder, but not on everyones programs menu. now go create a new user account, and it will be in the programs menu where you think it should be. so every existing account, it won't be there, but any new account created, it will be there.
Darren Kopp
That is not my experience. If you install from Admin1 to All Users, then the Shortcuts are immediately visible if you log back in as ExistingNonAdmin2But I think this is missing the point of my question: A NonAdmin1 can't create any shortcuts in the Programs menu. Why not? By design?
Clay Nichols
+1  A: 

Vista does some nifty transparent redirection to provide backwards compatibility with non-vista applications. Try installing to the All Users location as a non-admin, and Vista should transparently put your shortcuts somewhere unique to that user.

sascha
Yes, Vista does have some *interesting* <g> Virtualizing. But I tried this and it didn't work.
Clay Nichols
A: 

I had a permissions issue with an installer I created when users started installing on Vista. What solved my problem was renaming the installer to install.exe (or setup.exe).

-Dave

Dave