Go Back   Winamp Forums > Developer Center > NSIS Discussion

 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 22nd January 2003, 08:19   #1
mrtech
Junior Member
 
Join Date: Oct 2002
Posts: 46
SetOverwrite, IfErrors & File space calculation issue

I've been trying to get this working for a little while now and here is what I've come up with:

Situation:
- my VB app downloads and runs nsis installer via shellexecute as an upgrade
- installer/app have a timing issue and needs the first error "Can't Overwrite" msg back in order for the app to finish the shellexecute and unload itself

Fix:
SetOverwrite try

File mrsystray.exe ; might still be in use or unloading

IfErrors 0 NoError
Sleep 100
File mrsystray.exe
NoError:

Problem:
Though the installer is still very small, the required file space is reported as doubled of what you really need.

Question:
Is there anyway of adding a /dontadd or /ignoresize to the File command or like with the AddSize add a SubstractSize

In the meantime I'm using AddSize -252 but the size of my app changes from build to build. Tried using the FileSizeNew script but it returned the amount in bytes and could really get it to compile.

Any suggestions would be grateful, thanks.

Mel
mrtech is offline   Reply With Quote
 
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump