WwTIPPYwW Posted April 11, 2004 Posted April 11, 2004 Here is what I've got - I couldn't figure out how to set the install directory with the command switch. (its a WISE installer) If installed from "%ProgramFiles" it installs to c:\program files\AGENT just fine. However, the shortcuts pointed to C:\ so I had to fix those.the AGENT.INI is the main config.the LAYOUT.DAT is the layout.There are other files that could be loaded too, I just didn't grab them.If anyone knows how to pass the install DIR in the command line of the setup, I'd like to know. It would eliminate some of these extra steps in here. Also hopefully it would fix the shortcuts.Make your shortcuts look like the screenshot and you should be OK.cmdow @ /HID@echo offIF EXIST D:\CD.id set CDROM=D:IF EXIST E:\CD.id set CDROM=E:IF EXIST F:\CD.id set CDROM=F:IF EXIST G:\CD.id set CDROM=G:IF EXIST H:\CD.id set CDROM=H:IF EXIST I:\CD.id set CDROM=I:IF EXIST J:\CD.id set CDROM=J:xcopy /y %CDROM%\Software\agent20\setup.exe "%ProgramFiles%\"cd "%ProgramFiles%\""%ProgramFiles%\setup.exe" /sxcopy /y "%CDROM%\Software\agent20\agent.ini" "%ProgramFiles%\Agent\Data"xcopy /y "%CDROM%\Software\agent20\LAYOUT.DAT" "%ProgramFiles%\Agent\Data"xcopy /y "%CDROM%\Software\agent20\shortcuts\*.*" "%UserProfile%\Start Menu\Programs\Agent Newsreader"del "%ProgramFiles%\setup.exe"
codeblue Posted April 11, 2004 Posted April 11, 2004 I have the same problem, it installs into C:\.im going to try this in my next test version:REG ADD %KEY%\040 /VE /D "Forte Agent 2.646" /fREG ADD %KEY%\040 /V 1 /D "%CDROM%\Software\Agent\agent2-646.exe /s /X C:\Program Files\" /fThe X apparently alows you to specify an install directory. Havent tested this yet.Have you sussed how to import the serial number?
WwTIPPYwW Posted April 11, 2004 Author Posted April 11, 2004 codeblue - try using %programfiles% instead of c:\program files - it makes it more universal - incase you (or whoever) doesn't install to C:the x was for extract - not sure if it works the same...UPDATE - I tried the /X and it didn't seem to work right. I got no shortcuts, unistall info, or registry info. It just extracts to the specified folder.Also - /X C:\Program Files\ will dump it into the program files folder, not in C:\Program Files\Agent
codeblue Posted April 12, 2004 Posted April 12, 2004 might have it sussed, but NOT tested.Install Agent 2 normaly, configer it how you like, enter serial no. and then find the AGENT.INI file in the DATA folder.Install Agent again using the X switch, E.gJ:\XPSP1a\Software\Agent\agent2-646.exe /X J:\XPSP1a\Software\AgentThis will extract all data out of the exe file. You could then copy the previous AGENT.INI over the extracted one and put everything in the $OEM$\$Progs folder.Just create shortcuts in the start menu and bob is your uncle!As i said, NOT tested yet, but let me know how it goes.
WwTIPPYwW Posted April 12, 2004 Author Posted April 12, 2004 I suppose you could just add it to the $PROG folder from the get go. No need to have the unattended do anything.If you put it on the cd in $PROG\Agent then it will copy the stuff over when XP is installed. Then all you'd need to do is create the shortcuts. (assuming that you've got a good agent.ini set up).the /x stuff wouldn't be needed. as it will already be extracted where it needs to be.untested theory
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now