ashishmishra_cs
27th March 2007 09:50 UTC
Nsis script which insert user name and company name
Hello everybody,
I am new at nsis script. i have been made my installer script
mostly. But i m stuck in making of page for user input.
simple page which take user name and company. and if i install the same installer again then it should show that this installer have been already installed.
Thanks for ur time.
Ashish
Red Wine
27th March 2007 11:01 UTC
If the reason is to show that the application is already installed, InstallDirRegKey is what you're looking for.
http://nsis.sourceforge.net/Docs/Chapter4.html#4.8.1.22
darshanaltekar
27th March 2007 11:06 UTC
You'll have to design Custome page for this.
Page custom CName_comp_pre CName_comp_leave #custome page
function .oninit
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "Custome page.ini"
functionend
function CName_comp_pre
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "Repair_UNINSTALL.ini"
functionend
function CName_comp_pre
#read state of fields(textboxes) in .ini file
#Company Name & User name
functionend
To show message to user when it runs setup again use registery.
Just check wheather reg. keys are there or not in .oninit function If they are present show messagebox else run go with normal installation
Dont forget to delete reg keys in Uninstaller.