MSFN Forum: rundll to install a svcpack addon? - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

rundll to install a svcpack addon? Rate Topic: -----

#1 User is offline   NOTS3W 

  • Member
  • PipPip
  • Group: Members
  • Posts: 117
  • Joined: 19-April 07

Posted 28 June 2007 - 01:39 PM

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


#2 User is offline   0d14r3 

  • Member
  • PipPip
  • Group: Members
  • Posts: 195
  • Joined: 12-September 06

Posted 28 June 2007 - 08:48 PM

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

#3 User is offline   NOTS3W 

  • Member
  • PipPip
  • Group: Members
  • Posts: 117
  • Joined: 19-April 07

Posted 30 June 2007 - 10:19 AM

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy