Skip to content
⌘ NSIS Forum Archive

Installing dotNet Framework 2 and deltet it after installation ?

2 posts

NeoBelerophon#

Installing dotNet Framework 2 and deltet it after installation ?

Hi,

i want to install the german dotNET Framework 2.0 with my Program.

Does it make sence to delete the dotnetfx.exe after installing it on the system?

i thought about something like :

MessageBox MB_OKCANCEL|MB_ICONSTOP ".NET Framework v2.0 ist auf Ihrem System nicht installiert.$\r$\n Klicken Sie OK um ihn diesen installieren." IDOK installNET IDCANCEL 0
    Abort
    installNET:
        SetOutPath "$TEMP"
        SetOverwrite ifnewer
        File "dotnetfx.exe"
        ExecWait '"$TEMP\dotnetfx.exe"'
        Delete $TEMP\dotnetfx.exe 
And i was a bit confused by the using of \ so use \ after e.g. $INSTDIR and some don't. Does both work ?
kichik#
If the installer downloads or extracts dotnetfx.exe, it makes sense to delete it. If the user gets the file for you, it doesn't.

As for the slashes, you must always use them.