Jump to content

SFX integration with nLite


Recommended Posts

Posted (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 by Nic303

Posted (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 by Sp0iLedBrAt
Posted

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?

Posted

There are two ways:

1. Integrate the silent switch into the sfx; or

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

Posted (edited)

ok, this is what you do:

right-click the file and select ADD TO ARCHIVE (this is with WinRAR):

Compression method: Store

Click Create SFX Archive

On the second tab ADVANCED, click SFX options

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

In 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 COPY
start /wait %Source%$OEM$\COPY\EXAMPLE.exe

exit

Save 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 by Sp0iLedBrAt
Posted (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 ?

post-244073-1242568876_thumb.jpg

Edited by Nic303
  • 4 weeks later...
Posted

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.

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