Top

WinRar How to make a Self Extracting EXE

December 27, 2008 by · Leave a Comment 

Here is how to make a Self Extracting EXE using WinRar. That will work on Vista and XP “Video Tutorial included

I needed to make a self extracting exe to extract some moded maps into any users file directory in Vista and XP, the maps would go into the mods folder. Below would be the correct path for Vista and XP. But I wanted one command to be able to use the same self extracting exe file on both XP and Vista, without making 2 separate files, so below is what I did to make this work on both XP and Vista. This will allow any user to extract without having to input their computer profile name.

(Vista) C:\Users\%USERPROFILE%\AppData\Local\Activision\CoDWaW\mods\

(XP)C:\Documents and Settings\%USERPROFILE%\Local Settings\Application Data\Activision\CoDWaW\mods\

While trying to make a self extracting exe using WinZip I found that trying to use \%USERPROFILE%\ or \%current user%\ in the extract to line using WinZip Self Extractor, that WinZip does not apparently support this, so you may have to use a batch file to accomplish this. I found that quite annoying, so, I tested this using WinRar and it works fine with WinRar.

I guess for making self extracting exe files and using the \%USERPROFILE%\ or \%current user%\ command in the path to the extracting folder. This will not work Using WinZip.

You have to use WinRar, using SFX “convert archives to self extracting exe”

If I use the Vista path %USERPROFILE%\AppData\Local\Activision\CoDWaW\mods\ it will not work on XP but will work on Vista.
<<<< WINRAR ONLY >>>>
So the command line I used, is this, to make it work using one command for Vista or XP.
If I use the XP path %USERPROFILE%\Local Settings\Application Data\Activision\CoDWaW\mods\ This will work on Both XP and Vista.
<<<< WINRAR ONLY >>>>

I want to thank my Friend HighNoon for the guidance in the correct direction in making this work.
I have tested this on XP and Vista…..and works so far. No need for the Drive letter to be included in the command line!

========================
 View the How too Video Here,
========================

« Previous Page

Bottom