I've been testing with the QuickPortTemplate_v1.1 code but i always get an error with the Messagebox::show command here
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Section "Main"
;Check machine for local install and if found show a message box to choose what settings to use.
${registry::KeyExists} "${REGKEY}" $R0
StrCmp $R0 "0" 0 RunPortable
Messagebox::show "" "Local ${APPNAME} Installation Found..." "" " ${APPNAME} is currently Installed to the local machine.$\n Do you want to use your Portable Settings or the Local Settings?" "Portable Settings" "Local Settings" IDCANCEL
pop $0
StrCmp $0 "1" BackupLocal
StrCmp $0 "2" RunLocal
StrCmp $0 "3" End
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
I would show a pic but I dont now how (i dont know html).
I was using Portable NSIS and then found
HM NIS Edit(using nsis compiler's engine)
http://portablefreeware.com/?q=nsis&m=Search
they both gave me the same error
it says
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
!insertmacro: end of regisrty::KeyExists
StrCmp "$RO" "0", nonequal=RunPortable
Invalid Command: MessageBox::show
Error In Script "F:\QuickPortTemplate_1.1\QuickPortableTemplate\....etc location of script" error in script on line 68
What am I doin wrong?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
In RegRapper Ive gottin it to make a couple of apps (I Recompiled the code and the icon) but i always get this error and i just delete some keys(which i know is bad!) and it works!
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
;----Functions----
Function RegCheck ;----Function to call RegSearch and check query results----
${RegSearch} ${ROOTKEY1} $DEVNAME
StrCmp $REGKEY "" 0 goBack
${RegSearch} ${ROOTKEY1} $APPNAME
StrCmp $REGKEY "" 0 goBack
${RegSearch} ${ROOTKEY1} $EXECUTABLE
StrCmp $REGKEY "" 0 goBack
${RegSearch} ${ROOTKEY2} $DEVNAME
StrCmp $REGKEY "" 0 goBack
${RegSearch} ${ROOTKEY2} $APPNAME
StrCmp $REGKEY "" 0 goBack
${RegSearch} ${ROOTKEY2} $EXECUTABLE
Return
goBack:
Return
FunctionEnd
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
It will work only if i delete all the keys except one like this...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Function RegCheck ;----Function to call RegSearch and check query results----
${RegSearch} ${ROOTKEY1} $DEVNAME
StrCmp $REGKEY "" 0 goBack
goBack:
Return
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
I'm guessing since (since i dont now alot about code that the app is searching rootkey1(which is(HKEY_CURRENT_USER) for the devname.
If i delete all the other keys and leave one, it will work fine but im just making sure if i should delete keys like that but if i dont change any thing it will say this
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
StrCmp "$0" "-1_ equal=0, nonequal=find
Error: label "find:" already decrlared in function
Error in macro RegSearch on macroline 4
Error in script "F:\.....and the location of the script"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
I dont edit any code its the same as it was as i downloaded it, i change names or add names, decscriptions, versions, stuff like that you know since its a template but i dont fully understand code (yes im n00b dont hate) so im here to ask for help
So if anyone can tell me what im doin wrong it would help alot thanks!