Nic303 Posted May 17, 2009 Posted May 17, 2009 (edited) I've made one sfx, and i want to integrate this in XP sp3 (with nLite or other program) and automatically run after Windows installation, without asking me.Can anyone help me ? Edited May 17, 2009 by Nic303
Sp0iLedBrAt Posted May 17, 2009 Posted May 17, 2009 (edited) nic303, if you want it to run after windows installation, you can put it to execute with a batch file through the RunOnce section of nLite, with silent switches. If you give us more information, we can be more specific.Cheers Edited May 17, 2009 by Sp0iLedBrAt
Nic303 Posted May 17, 2009 Author Posted May 17, 2009 Yes, i want to selfextracting after complete Windows installation.Can you tell me (step by step) how to make silent switches or batch and integrate them with nLite?
Sp0iLedBrAt Posted May 17, 2009 Posted May 17, 2009 There are two ways:1. Integrate the silent switch into the sfx; or2. make a batch file that you will add in the RunOnce section of nLite and it will execute on first startup.To help you with the correct switch, you need to tell me what the SFX contains; is it an .exe or...?
Sp0iLedBrAt Posted May 17, 2009 Posted May 17, 2009 (edited) ok, this is what you do:right-click the file and select ADD TO ARCHIVE (this is with WinRAR):Compression method: StoreClick Create SFX ArchiveOn the second tab ADVANCED, click SFX optionsUnder General tab, Path to extract, add the path where you want the file to extract (e.g. C:\Program Files\Adobe\...)Under Mode tab, Silent Mode, select Hide All.That should be all. Now create the SFX archive; let's say the name is EXAMPLE.exeIn your Windows source folder, create a folder $OEM$, and inside a subfolder COPY. Put the file EXAMPLE.exe inside the COPY folder.Now open Notepad or another text editor. Type REM COPYstart /wait %Source%$OEM$\COPY\EXAMPLE.exeexitSave it in the root of the Windows source folder as BATCH.cmd .When you nLite your CD, in the RunOnce tab add this code CMD /R %Source%BATCH.cmd .That's it.It will copy itself after Windows instalation Edited May 17, 2009 by Sp0iLedBrAt
Nic303 Posted May 17, 2009 Author Posted May 17, 2009 (edited) Save it in the root of the Windows source folder as BATCH.cmd .I save the batch in I386 folder or in other folder or the location it's ok ? Edited May 17, 2009 by Nic303
Nic303 Posted May 17, 2009 Author Posted May 17, 2009 (edited) Thanks.I've tried in a virtual machine and works great. Edited May 17, 2009 by Nic303
snorfleet Posted June 12, 2009 Posted June 12, 2009 Hello, i am trying to integrate an oemlogo.bmp and the oeminfo.ini with this method, but so far have been unable to do so. I followed the winrar steps to the tee. My path to extract was c:windows\system32 and I placed the BATCH file in the xpcd folder... was this right? Any help would be great.
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