I'm back again with other problems.
With my program I'm installing MySQL from msi package. But then I want to delete MySQL shortcut folder from the start menu.
That's my code
;Installing MySQL
SetOutPath "$INSTDIR"
SetOverwrite ifnewer
File "..\mysql-essential-4.1.12a-win32.msi"
ExecWait 'msiexec /i "$INSTDIR\mysql-essential-4.1.12a-win32.msi" /qn INSTALLDIR="$INSTDIR\MySQL"'
RmDir /r "$SMPROGRAMS\MySQL\*.*"
And nothing happens. What's wrong here?
The other problem is to find and delete a specified string from a file.
Two problems: delete shortcut folder and string from file
3 posts
4.9.7.5 SetShellVarContext
Default NSIS context is current, but MySQL probably uses 'all'
RmDir /r "$SMPROGRAMS\MySQL"
looks better for me 😉
Please note - this folder might exist there before your installation started.
For string replace read this http://nsis.sourceforge.net/wiki/Cat...tion_Functions
Default NSIS context is current, but MySQL probably uses 'all'
RmDir /r "$SMPROGRAMS\MySQL"
looks better for me 😉
Please note - this folder might exist there before your installation started.
For string replace read this http://nsis.sourceforge.net/wiki/Cat...tion_Functions
Takhir, thank you for your answer 🙂 Everything works!