Jump to content

Recommended Posts

Posted

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 off

IF 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" /s

xcopy /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"

post-80-1081714213_thumb.jpg


Posted

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" /f

REG ADD %KEY%\040 /V 1 /D "%CDROM%\Software\Agent\agent2-646.exe /s /X C:\Program Files\" /f

The X apparently alows you to specify an install directory. Havent tested this yet.

Have you sussed how to import the serial number?

Posted

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

Posted

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.g

J:\XPSP1a\Software\Agent\agent2-646.exe /X J:\XPSP1a\Software\Agent

This 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. :)

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...