File bag (v9r2)

Got a problem you cannot solve? Try here.
SteveSneed
Posts: 20
Joined: Mon Jan 26, 2009 4:19 pm

File bag (v9r2)

Postby SteveSneed » Mon Jun 23, 2014 11:02 am

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

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: File bag (v9r2)

Postby FrancescoT » Mon Jun 23, 2014 11:23 am

Dear Steve,

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

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

SteveSneed
Posts: 20
Joined: Mon Jan 26, 2009 4:19 pm

Re: File bag (v9r2)

Postby SteveSneed » Mon Jun 23, 2014 11:36 am

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

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: File bag (v9r2)

Postby FrancescoT » Tue Jun 24, 2014 3:17 am

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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 137 guests