Hi all,
While I was working in portabilizing GrindStone, I've found a (possible) bug in the PA Installer: Grindstone installed itself in "%PROGRAMFILES%/Grindstone 2", and register its path in "HKLM\Software\Grindstone 2" (with spaces in the name). I've tried to use the option [CopyLocalFiles] section as following:
[CopyLocalFiles]
CopyLocalFiles=false
CopyFromRegPath=HKLM\Software\Grindstone 2
CopyFromRegKey=Install_Dir
CopyFromRegRemoveDirectories=0
CopyFromDirectory=%PROGRAMFILES%\GrindStone 2
CopyToDirectory=App\GrindStone 2
But generating the installer yields to the issue "{_If} expects 4 parameter, passed 5" in the line '{_If} $CopyFromRegPath = ""'. I suppose that's caused from the space between "Grindstone" and "2".
Yeah, that's what seems to be causing the problem.
Try putting quotes around "HKLM\Software\Grindstone 2".
Make sure CopyLocalFiles is true, or else it won't work at all.
I found this bug and fixed it in my Installer repository, most of which will be going into the PortableApps.com Installer 1.0.1. (At that time the file was UTF-16LE and without a minor hg extension it detects that as binary, and I can't get it to apply online, so you don't get a diff.)
That this sort of problem had come back I found when my brother Jon went to build BPBible Portable 0.4.6 - one value in installer.ini which is normally "Multilingual" or "English" is in BPBible "With Resources", and that broke things, so I went through all the file and found a couple of others, including this one you're having trouble with.
I am a Christian and a developer and moderator here.
“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1
I think the latest version is 2.0.
Will there be 2 versions???
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate
Sorry, I meant 2.0.1.
I am a Christian and a developer and moderator here.
“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1