Help - Search - Members - Calendar
Full Version: howto install silent on other partitions?
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   
Google Internet Forums Unattended CD/DVD Guide
spachtler
hello,

is it possible to install programms silent on another partition
like D:\ or E:\ ?

i have 17 programms integrated in the silent install,
works fine, but they are all on the same
partition as xp is....

Spachtler
WwTIPPYwW
probably have to specify the actual drive letter?

anyone have a list of these variable? - I needed one for desktop and just had to use the ALL USERS desktop
EskimoPie
You'll have to call the drive letter by name like spachtler said. If its the first partition after root, then its D:, the second is E: and so forth.

spachtler: if you want it only on your current users desktop you can use
CODE
%UserProfile%\desktop
_Shorty
open a command prompt and type 'set' and you'll see lots of variables you can use.
XtremeMaC
u can also add variables..
if they are msi's u can append a specific line to the cmdline to install it to a given path. (I'll fetch it for u later, in 1-2 weeks sad.gif sorry i don't have much time these days, u can search for it in installshields website)

if u want u can install all the programs files to another partition
adding lines into winnt.sif...
RayOK
Well, of course the only way you can do this is if you can specify where to install the application. For example, a program like K-Lite Codec Pack, a command line program, I use this:

CODE
ECHO  -K-Lite Codec Pack 2.10 Full to %systemdrive%\
IF "%systemdrive%"=="C:" START /WAIT %systemdrive%\install\KLCODEC\KLCP210f.exe /verysilent /dir="C:\Program Files\K-Lite Codec Pack" /more switches
IF "%systemdrive%"=="D:" START /WAIT %systemdrive%\install\KLCODEC\KLCP210f.exe /verysilent /dir="D:\Program Files\K-Lite Codec Pack" /more switches


Or if your %systemdrive% is C, install on D or whereever.

For programs that use a script, like ATI Control Panel, make two .iss files, eg:

CODE
ECHO  -ATI Control Panel to %systemdrive%\
IF "%systemdrive%"=="C:" START /WAIT %systemdrive%\install\ATICP\Setup.exe -s -f1"%systemdrive%\install\ATICP\setupc.iss"
IF "%systemdrive%"=="D:" START /WAIT %systemdrive%\install\ATICP\Setup.exe -s -f1"%systemdrive%\install\ATICP\setupd.iss"


In setupc.iss the install folder is set to C:\Program Files\ATI and setupd.iss D:\Progra.... respectively.

There are ways to do cetain things in .cmd/.bat files. For example, this will detect if a folder exists.. and if the folder did exist, would do whatever you tell it to, in this case, ECHO D:\Folder exists!

CODE
IF EXIST D:\Folder\con ECHO D:\Folder exists!


And in this example, using the free program locate this code will find, and set a variable that is the drive letter that the file is on. Example, if the file is E:\Stuff\file.txt it would set a variable named EDRIVE to E.

CODE
TYPE NUL | LOCATE file.txt /N | CHOICE /N /C:ABCDEFGHIJKLMNOPQRSTUVWXYZ > NUL
FOR %%D IN (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF ERRORLEVEL H%%D SET EDRIVE=%%D


Make sense? Probably a complex way to do things, and may not be what you need but just letting you know there are ways to do a LOT more things than people think are possible in .cmd/.bat files.

whistling.gif
ZoSTeR
You can change the windows default program files path.

QUOTE
3236 » Can I relocate '\Program Files\'?

I have never found a supported way to accomplish the subject task, but here is a procedure that 'mostly' works:

1. Close ALL programs on your desktop.

2. Use Regedt32 to navigate to the following value names and change the data values to reflect the new location:
 
  HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Currentversion\ProgramFilesDir
 
  HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Currentversion\CommonFilesDir

3. For Windows 2000, also modify:

    HKEY_LOCAL_MACHINE\Software\Microsoft\Inetstp\ProgramFilesPath

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\SFC\CommonFilesDir

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\SFC\ProgramFilesDir

4. MOVE the current Program Files folder, and sub-folders, to the new location.

5. Search ALL shortcuts, *.lnk files, on the current \Program Files drive, for \Program Files content. For each shortcut returned, right click the shortcut and press Properties. Change any affected Target: and Start in:.


!But changing this can severely f*ck up your system!
Don't be suprised if your IE and Outlook cease to work.

I don't know if there's a way for changing the default path before actually installing the first apps.
big_gie
I have 3 partitions:
C: is for windows
D: is for Programs
E: is for personnal data (My Documents)

I'm using a answer file to install xp, and I have this in it:
QUOTE
[Unattended]    UnattendMode=FullUnattended
    OemSkipEula=Yes
    OemPreinstall=Yes
    TargetPath=\WINDOWS
    ProgramFilesDir="D:"
    CommonProgramFilesDir="D:\FichiersCommuns"
...


So everytime I double click a setup file, the default installation is no more "C:\Program Files\<program name>" but "D:\<program name>"

This is working REALLY fine!! Well I don't use Outlook at all, but I do use IE for windowsupdate.com and some sites not working in Firefox/Opera. No problem.

If I look in "C:\Program Files" I have nothing smile.gif

All the IE things and Outlooks things and WMP and everything is on D:...
lor
It could be possible MOUNT the drive D: in a C: folder, so you can maintain the c:\program files but mounted in any other disk partition.

I don't know how to mount this before the unatended instalation, but i think it is possible to format and/or mount partitions.
spachtler
QUOTE (big_gie @ Mar 9 2004, 10:42 AM)
I have 3 partitions:
C: is for windows
D: is for Programs
E: is for personnal data (My Documents)

I'm using a answer file to install xp, and I have this in it:
QUOTE

[Unattended]
    UnattendMode=FullUnattended
    OemSkipEula=Yes
    OemPreinstall=Yes
    TargetPath=\WINDOWS
    ProgramFilesDir="D:"
    CommonProgramFilesDir="D:\FichiersCommuns"
...


So everytime I double click a setup file, the default installation is no more "C:\Program Files\<program name>" but "D:\<program name>"

This is working REALLY fine!! Well I don't use Outlook at all, but I do use IE for windowsupdate.com and some sites not working in Firefox/Opera. No problem.

If I look in "C:\Program Files" I have nothing smile.gif

All the IE things and Outlooks things and WMP and everything is on D:...

this sounds pretty good, will try it.....

thx, spachtler
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.