Incroyable HULK Posted December 27, 2004 Posted December 27, 2004 Yes, it's me again. Still asking questions about batch files! 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\RunOnceExREG ADD %KEY% /V TITLE /D "Please Don't Pick Your Nose While Installing" /fREG ADD %KEY%\001 /VE /D "MS Office Pro 2003 Fr." /fREG ADD %KEY%\001 /V 1 /D "S:\SETUP.EXE TRANSFORMS=Unattended.mst /qb-" /frundll32.exe iernonce.dll,RunOnceExProcess%systemdrive%net use s: /deleteI know I can provide the Username and the Password in my batch file but what I want is something similar to this prompt: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.
Incroyable HULK Posted December 27, 2004 Author Posted December 27, 2004 if I use the following code:SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Stop Scratching your Testicles" /fREG ADD %KEY%\001 /VE /D "Connecting to Network..." /fREG ADD %KEY%\001 /V 1 /D "CMD /C net use s: \\Server\Source" /fREG ADD %KEY%\002 /VE /D "MS Office Pro 2003 Fr." /fREG ADD %KEY%\002 /V 1 /D "S:\setup.exe TRANSFORMS=Unattended.mst /qb-" /frundll32.exe iernonce.dll,RunOnceExProcessI 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...
Incroyable HULK Posted December 28, 2004 Author Posted December 28, 2004 Oh! I think I found a way!SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Stop that Would you!" /fREG ADD %KEY%\001 /VE /D "MS Office Pro 2003 Fr." /fREG ADD %KEY%\001 /V 1 /D "\\Server\Source\setup.exe TRANSFORMS=Unattended.mst /qb-" /frundll32.exe iernonce.dll,RunOnceExProcessNow 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 ?
Vadikan Posted December 28, 2004 Posted December 28, 2004 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.
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