Archive: Shared function help


Shared function help
Hi,

I have successfully created a shared func, but when it is called from Uninstall section it has to be preped with un. and this cause my runtimes files to double in size.

Here is the output below..

!insertmacro: MYMACRO
Function: "myfunc"
SetOutPath: "$TEMP"
SetOverwrite: on
File: "dotnetfx3.exe" 52770576 bytes
File: "CRredist.msi" 26432000 bytes
File: "gacutil.exe" 97472 bytes
File: "MySql.Data.dll" 143360 bytes
File: "mysql-connector-odbc-3.51.12-win32.msi" 2376192 bytes
FunctionEnd
!insertmacro: end of MYMACRO
!insertmacro: MYMACRO
Function: "un.myfunc"
SetOutPath: "$TEMP"
SetOverwrite: on
File: "dotnetfx3.exe" 52770576 bytes
File: "CRredist.msi" 26432000 bytes
File: "gacutil.exe" 97472 bytes
File: "MySql.Data.dll" 143360 bytes
File: "mysql-connector-odbc-3.51.12-win32.msi" 2376192 bytes
FunctionEnd
!insertmacro: end of MYMACRO

Is there anyway around this?


This could help you:

http://forums.winamp.com/showthread....59#post2070859


If you don't like this, try this:

http://nsis.sourceforge.net/CombinedUnInstaller