new Installed Custom Action with files in temp folder. - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

EDVGradl
Posts: 6
Joined: Mon Jun 21, 2010 2:45 pm

new Installed Custom Action with files in temp folder.

Hi!
Since i have already solved the problem getting .net Libraries called from VBS, i am diving into another Problem. I have tested the VBS Script as an attached Custom Action and all worked fine, on my computer.... then i saw, that the file(s) are not distributed with the install-package. To get it distributed, i have switched from an attached action to an installed action. I have placed the files, which needs to be called, in the temp-folder. When testing the new package, the installer tells me, that the files cannot be accessed, and for real, the files aren't extracted at the moment where i need the files (UserRegistrationDialog, in the Init Event). I need the files to get a valid "fingerprint" from the target computer, to verify if an update is allowed or not.
What did i wrong? Or better: what do i have to do, to get it working?

Thanks!
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: new Installed Custom Action with files in temp folder.

Hello,

Attached custom actions are actually distributed with the installation package. They are included in the package and extracted in a temporary location upon package runtime.
If you want the "installed custom action" approach, you can add your vbscript files as Temporary files. These are available throughout the entire install process.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
EDVGradl
Posts: 6
Joined: Mon Jun 21, 2010 2:45 pm

Re: new Installed Custom Action with files in temp folder.

Hi Gabriel!
Yeah, i have tried it to solve it with temporary files, but i cannot add them in a "new installed custom action". But then i saw, that there's a property-name given for the file. but how can i execute such now? the VBS already sets to property "PIDKEY".

Thanks!
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: new Installed Custom Action with files in temp folder.

Hello,

You can add references to files by using the Edit button, then clicking the "File" button on the dialog that pops up and select your temporary file.

Let me know if this helped.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
EDVGradl
Posts: 6
Joined: Mon Jun 21, 2010 2:45 pm

Re: new Installed Custom Action with files in temp folder.

hi Gabriel!
Which edit button do you mean? I have added the files as temporary files, then i added a custom action "PropertySource":
property name: PIDKEY
source type: vbs
function name: "[&getfingerprint.vbs]"

the function name is in the editor red underlined a popup tells me "invalid indentifier". I added this via the Edit/File...
this PropertySource is packed in a custom action, which fails :-(

Is this kind of custom action siutable for me, or do i need another custom action? Why tells me that "[&getfingerprint.vbs]" is an invalid indentifier?

Thanks!
EDVGradl
Posts: 6
Joined: Mon Jun 21, 2010 2:45 pm

Re: new Installed Custom Action with files in temp folder.

Hi.
No answer? :-( I still stuck on that problem and i need help!

Thanks
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: new Installed Custom Action with files in temp folder.

Hi,

Simply leave your custom action as attached like you had it when you started this thread, then also add it as a regular file from the Files and Folders page. That should both ensure the script is available when you need it and also leave it installed on the computer.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”