I suggest a new built-in variable:
%QuickLaunch%
I have use for put some icon to Quick Launch in my setup, but I can't do it.
Sincerely
Laslie
Professional Software Development Tools
I suggest a new built-in variable:
%QuickLaunch%
I have use for put some icon to Quick Launch in my setup, but I can't do it.
Sincerely
Laslie
I'd also like this option... does anybody have a script that does this?... (as a temporal workaround)
Try this:
First, use a Read from Registry action to get the AppData path:
Read from Registry
Variable name: %AppData%
Main key: HKEY_CURRENT_USER
Sub Key: Software\Microsoft\Windows\CurrentVersion\Explorer \Shell Folders
Value name: AppData
Then, use an Assign Value action to guess the standard "Quick Launch" folder's path:
Assign Value
Variable name: %QuickLaunch%
Value: %AppData%\Microsoft\Internet Explorer\Quick Launch
Evaluate value as expression: unchecked
You'll probably want to test this out on several operating systems...I've only tested it on my work system, which is running Windows 2000 at the moment.
--[[ Indigo Rose Software Developer ]]
That worked great on my machine.
I'm running Windows XP Pro [img]/ubbthreads/images/icons/smile.gif[/img]
What about the Rest of the Users on the system, and 9.x boxes? I want to make sure the short is avable for all users on the computer especially in Windows 2000 Terminal Server.
To make it work on all OS you have to use the OS detect feature and write a script for Win95, 98, ME and for NT, 2000 and XP.
I know I could use that to deside what OS I am installing on, But each OS uses a different location for storing the Quick Launch also its different for each user, I was hoping that someone knew a gloable location. Is there a way to find each users account on the system and add the to their Quick Launch tool bar?
This should be a global way to add a shortcut to Quick Launch.
It should work on all NT, 2000, XP and .Net platforms.
If someone finds it not to work please let me know at robert@geotrail.no
Read from Registry:
Variable name:
%QuickLaunch%
Default Value:
0
Main key:
HKEY_CURRENT_USER
Sub key:
Software\Microsoft\Windows\CurrentVersion\GrpConv\ MapGroups
Value name:
Quick Launch
The code could look like this:
Read from Registry (%QuickLaunch% = HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\GrpConv\MapGroups\\Quick Launch)
IF (%QuickLaunch% = 0)
Show Message Box (Could not find path to Quick Launch.)
GOTO LABEL (skip)
END IF
Create Shortcut (%QuickLaunch%\Notepad.exe -> Notepad.exe)
skip
Or to make sure the user is on NT, 2000, XP or .Net use this:
IF (%IsWin2000% OR %IsWinNT3% OR %IsWinNT4% OR %IsWinXP% = TRUE)
Read from Registry (%QuickLaunch% = HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\GrpConv\MapGroups\\Quick Launch)
IF (%QuickLaunch% = 0)
Show Message Box (Could not find path to Quick Launch.)
GOTO LABEL (skip)
END IF
END IF
Create Shortcut (%QuickLaunch%\Notepad.exe -> Notepad.exe)
skip
Sounds great.
Hope it gets added [img]/ubbthreads/images/icons/wink.gif[/img]
Thanks!