tags:

views:

244

answers:

2

I'm trying to build a sfx (self extracting archive) using winrar.

I'm using VS2008 to build a setup.exe and a myapp.msi. If setup.exe is executed it does some checking an launches myapp.msi

I'm using some sfx options to make the extraction quiet and make it extract so some temp folder:

;Der folgende Kommentar enthält SFX-Skriptbefehle

Setup=setup.exe
TempMode
Silent=2
Overwrite=1

It seems winrar deletes the msi right after setup.exe is launched. Setup.exe can't find the msi and crashes. Is there some way to fix this?

// Edit:

I solved the problem (a while ago) by just calling myapp.msi instead of setup.exe:

;Der folgende Kommentar enthält SFX-Skriptbefehle

Setup=myapp.msi
TempMode
Silent=2
Overwrite=1

The msi does not exit until the installation is finished.

A: 

I've just encountered this same problem with both WinZip and IExpress and it is a problem specific to Visual Studio 2008.

Microsoft's official suggestion was to wait for VS2010. I have just converted my VS2008 .sln to a VS2010 .sln (by importing it into Visual Studio 2010) and built it, then recreated the self-extractor using the new .exe and .msi and it DID fix the problem.

IAmFledge
A: 

7-zip provides tools specifically for creating SFX installers, give that a try :)

sascha
I'll look into it, if I can find some spare time ;)
Simon Ottenhaus
pretty easy... should take less than 30 mins including RTFM ;)
sascha

related questions