Help - Search - Members - Calendar
Full Version: Shortcuts and NAV2004?
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   
Google Internet Forums Unattended CD/DVD Guide
Bouchehog
My apologes if this has already be covered, I did do a search. smile.gif

Question 1
Is there any way to create shortcuts for a program? I have a couple of programs that only need copying over, but I'd like to stick a shortcut in the start menu.

QUOTE
ECHO.
ECHO Installing XP-AntiSpy v3.8
ECHO ______________________________________________________________
MKDIR "%systemdrive%\Program Files\XP-AntiSpy 3.8"
COPY "%systemdrive%\install\Applications\XPAntispy\xp-AntiSpy 3.8.exe" "%systemdrive%\Program Files\XP-AntiSpy 3.8"
ECHO ______________________________________________________________
Question 2
Also, does anyone know how I can get Norton Anti-virus professional to run from my install cd as the last thing? I know that there are several threads on this already, but I don't want to register it, just to start the installer as the last thing and run it manually. The following script doesn't work though. sad.gif It says that I have to go through setup. (Presumably I could still copy over the latest definitions before the install though)

QUOTE
ECHO.
ECHO Installing Norton Antivirus 2004
ECHO Please wait...
start /wait %systemdrive%\install\Applications\NAV2004\NAV.msi /QB

ECHO.
ECHO Updating Symantec Antivirus Virus Definitions (August 16, 2004)...
ECHO Please wait...
ECHO ______________________________________________________________
COPY "%systemdrive%\install\Applications\NAVDefinitions\" "%systemdrive%\Program Files\Common Files\Symantec Shared\VirusDefs\incoming\"
ECHO ______________________________________________________________



Question 3
Is there any way that I can alter the file associations automatically?


All help greatly appreciated! smile.gif
Bouchehog
Anyone?
mazin
Save this script as xp-AntiSpy.js, then execute it anytime and anywhere. Safely, you can delete lines in blue.

QUOTE
Shell = new ActiveXObject("WScript.Shell");
Location = Shell.SpecialFolders("Programs");
link = Shell.CreateShortcut(Location + "\\xp-AntiSpy.lnk");
link.Description = "xp-AntiSpy 3.8";
link.HotKey = "CTRL+ALT+SHIFT+X";
link.TargetPath = "%systemdrive%\\Program Files\\XP-AntiSpy 3.8\\xp-AntiSpy 3.8.exe";
link.WindowStyle = 3;
link.WorkingDirectory = "%systemdrive%\\Program Files\\XP-AntiSpy 3.8";
link.Save();

The script will create this shortcut:

C:\Documents and Settings\CurrentUser\Start Menu\Programs\xp-AntiSpy.lnk

If you want the shortcut to be in Start menu itself, replace Programs with StartMenu.
mazin
Oh, and for NAV, you should use NAVSETUP.exe not NAV.msi!
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.