Page 1 of 1

File bag (v9r2)

Posted: Mon Jun 23, 2014 11:02 am
by SteveSneed
Using V9r2 for quite a while now and I've been happy with it. Now I need to serialize one of our apps, and must use my own mechanism to embed modules-allowed data in the S/N. I modified the registration dialog with provision to input the S/N, and wrote a little DLL to check the input for validity, which I planned to add to the installer sfx via the FileBag plugin and then call via CallDLL once the user inputs the S/N. Calling the DLL works fine, but the FileBag call doesn't appear to do anything with the file. I've tried placing the FileBag call in various places, and in debugging the script watch it get called and update the declared variable with a valid path, but it does not copy the DLL file into that location. The lines in my script read:

Set Variable FILEBAGLOC to
Define File Bag : D:\Installations\InstallAware Plugins\ChkSN\*.dll, get runtine location of files into variable FILEBAGLOC

What am I missing here?

Thanks,
Steve Sneed

Re: File bag (v9r2)

Posted: Mon Jun 23, 2014 11:23 am
by FrancescoT
Dear Steve,

did you try to monitor the path returned from the file bag command via Explorer? did you see the files there?

Regards

Re: File bag (v9r2)

Posted: Mon Jun 23, 2014 11:36 am
by SteveSneed
Francisco - I did. The files exist in the directory input to the filebag call, but the directory named in the FILEBAGLOC output variable is never created, no files are copied into it, and I never see any reference to the DLL being coping in the progress window during script compilation. When I run the script in the debugger, the directory name placed in the variable is always the same: "C:\Program Files (x86)\InstallAware\InstallAware 9 R2\Plug-Ins\File Bag\bag". The "bag" folder under "...\Plug-Ins\File Bag" does not exist normally, but even if I create it, the DLL does not get copied into it. If I create that folder and manually copy the DLL into it before running the script, the DLL gets called as expected after the registration dialog.

Steve

Re: File bag (v9r2)

Posted: Tue Jun 24, 2014 3:17 am
by FrancescoT
Dear Steve,

do not use the debugger to test the File Bag command, the returned path may be not correct!

Please have a look at the link below;
http://www.installaware.com/forum/viewtopic.php?p=4348

Regards