Skip to content
⌘ NSIS Forum Archive

Need Help with NSIS script [3 queries]

2 posts

arif.ali.syed#

Need Help with NSIS script [3 queries]

Hi All,
I have used NSIS Quick Setup Script Generator.exe to generate an NSIS script for me, then later on I have made changes myself . My script is attached

Currently I have three problems, would appreciate if any if you can help me resolve them.

Query 1 : My uninstaller at last shows me a page to "reboot now" , I do not want this page to appear How do i do that ( by now you know ? how much I understand NSIS 😕)


Query 2 :
I think this has been asked many time on this forum, I read them but it did not help me.

I want my uninstaller to remove some files from %Appdata%

so i wrote following lines

Delete /REBOOTOK "$APPDATA\${APP_NAME}\${VERSION_SHORT}\PMW.conf"
Delete /REBOOTOK "$APPDATA\${APP_NAME}\${VERSION_SHORT}\PMW.log"
Delete /REBOOTOK "$APPDATA\${APP_NAME}\${VERSION_SHORT}\PMW_Remebered_Priorities.xml"

but it did not help, files exist even after deleting..

I then also tried to create dir in %Appdata% that also did not succeed.
I then also tried to copy come file in %app data% that also dint work....

Query 3:
I want to detect the presence of VC++ runtime on machine, and I know there are plenty of NSIS solution available out there... but the one that I want that example is not working, you can find it here...

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.


I am getting compilation error for this, I would appreciate if anyone can help me make this work. ( I have attached this script as well)
arif.ali.syed#
My Query 1 is solved,

I just had to remove following line

!insertmacro MUI_UNPAGE_FINISH

Thanks