Jump to content

Recommended Posts

Posted

Yes, it's me again. Still asking questions about batch files! :angel

This time I want to install MS Office 2003 from the network and I have the following code (working fine):

net use s: "\\Server\Source" 

s:

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Please Don't Pick Your Nose While Installing" /f

REG ADD %KEY%\001 /VE /D "MS Office Pro 2003 Fr." /f
REG ADD %KEY%\001 /V 1 /D "S:\SETUP.EXE TRANSFORMS=Unattended.mst /qb-" /f

rundll32.exe iernonce.dll,RunOnceExProcess

%systemdrive%

net use s: /delete

I know I can provide the Username and the Password in my batch file but what I want is something similar to this prompt:

password.gif

I don't want to get the terminal screen asking for the Username and Password because this batch file will be converted to .exe and totally hidden.


Posted

if I use the following code:

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Stop Scratching your Testicles" /f

REG ADD %KEY%\001 /VE /D "Connecting to Network..." /f
REG ADD %KEY%\001 /V 1 /D "CMD /C net use s: \\Server\Source" /f

REG ADD %KEY%\002 /VE /D "MS Office Pro 2003 Fr." /f
REG ADD %KEY%\002 /V 1 /D "S:\setup.exe TRANSFORMS=Unattended.mst /qb-" /f

rundll32.exe iernonce.dll,RunOnceExProcess

I get a terminal screen popup for the username and password... so it is useable for me to convert to .exe BUT I would prefer the nice Graphical Windows Prompt...

EDIT: I am currently checking in my SYSTEM32 folder to see if there is an .exe for the graphical prompt...

Posted

Oh! I think I found a way!

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Stop that Would you!" /f

REG ADD %KEY%\001 /VE /D "MS Office Pro 2003 Fr." /f
REG ADD %KEY%\001 /V 1 /D "\\Server\Source\setup.exe TRANSFORMS=Unattended.mst /qb-" /f

rundll32.exe iernonce.dll,RunOnceExProcess

Now I get the prompt I am looking for...

I wonder what will happen if the user is asked to insert the CD later on. Setup remember where the installation is comming from... but if there is authentification ?

Posted
I wonder what will happen if the user is asked to insert the CD later on. Setup remember where the installation is comming from... but if there is authentification ?

You can cache the installation files on the HDD. Configurable via setup.ini. Check out this article. I just don't remember whether you can specify caching options via transorm. Could be possible.

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