Skip to content
⌘ NSIS Forum Archive

Shared function help

3 posts

jaredsullivan#

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?
bholliger#
This could help you:

Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.