Jump to content

Recommended Posts

Posted

I need some help with creating a svcpack addon that uses rundll to install an application from setup.inf.

In testing, I can place all files in a known folder (C:\temp, for example) then use the command:

rundll32 setupapi,InstallHinfSection DefaultInstall 128 C:\temp\setup.inf

to install the program and all works well. I've tried this from guirunonce and it also works as long as I specify the full path to setup.inf.

I can make an addon cab file by putting all files in the svcpack folder and writing the ini file. I thought that would allow me to install as a hotfix, but no joy. Since I don't know where everything ends up, I don't know the path to setup.inf.

Is there a way to specify or predetermine where the files will be when the rundll32 command is executed?

Thanks,

Ray


Posted

Hi, Ray

I use a a SFX file created with WinRAR to install a codec via svcpack, here tha passes:

Put the all files necessary to use with your program, select all and create a SFX file with WinRAR and paste the next text in tab Comment


;O comentário abaixo contém comando de sequência SFX

Path=C:\LameACM-MP3
SavePath
Setup=RHC.exe Install.bat
Silent=1
Overwrite=1

The Install.bat is here:

@echo off
rem --- Instalando o LameACM - para MP3
rem ---

start /wait rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 C:\LameACM-MP3\LameACM.inf

cd ..
rd /s /q C:\LameACM-MP3

Description:

RHC.EXE is Runhiddenconsole.exe to hide the CMD window

LameACM-MP3 is dir where I extract the files, it´s permanent (SavePath) no temporary

Last line intro Install.bat remove the dir after all process.

At final I use nLaom to create my addon to use in nLite.

Change these texts to your necessity. B)

0d

Posted

I'm making progress. I used a combination of what you showed me above and what my friend Martin H described here.

Anyway, I created a self-extracting 7-zip archive with a config.txt file that specifies an extraction folder. I also created a cmd file to run the rundll command now that I know where the extracted setup.inf file can be found. I put both of them in the svcpack folder and created an ini file to add them to svcpack.inf and CABTool'ed the whole package into an addon cab. It took awhile to wrap my head around that, test it and incorporate it into my ISO, but it appears to have worked. At least the application is getting installed.

The program I've been trying to install as an addon is Windows Security Configuration Editor for the sole purpose of adding the Security tab to file and folder properties in XP Home. With help from Martin H, I've been doing that from guirunonce but I wanted to move it into an addon and install it through svcpack. The only thing that changes is the timing of the install (svcpack vs guirunonce). I know that some XP files get replaced when I install WSCE. If I run the rundll command from the desktop after installation, Windows File Protection reports the replacements. I saw no errors when installing from guirunonce and everything worked okay. Now that I'm using the addon method, I'm seeing a few post-install errors. Windows is complaining about unsigned mouse and keyboard drivers and Windows Firewall can't start because Internet Connection Sharing cannot start. All of that could have something to do with some conflict during the install of Windows on Virtual PC. I've seen such things before and I'll reinstall again today to see if the problems persist. If they do, I'll schedule the cmd (rundll.......) file to run in guirunonce as you described here and see what happens.

I can't believe how much I've learned from you folks on MSFN in the last couple of months. I appreciate the time some of you have taken to explain these details. Thank you!

Ray

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