how to install from a client 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!

justminime
Posts: 5
Joined: Thu Jan 17, 2008 11:34 am

how to install from a client temp folder

our software cabs are dowloded to the user Temp folders and extracted by another program.
after extraction the program need to run a setup which moves files from the temp to the program files and dataapp and do some registration. in order to do so i need the setup.exe to access dynamic folder (tempfolder and install files from there.
How do i do that?
i cant do a setup which works get's the file from the client computer
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Can you please give me more details about how you are using Advanced Installer (what are you installing with the generated MSI)? Also, how are the CABs downloaded ? Are you using a bootstrapper?

Please give me more details.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
justminime
Posts: 5
Joined: Thu Jan 17, 2008 11:34 am

i'll try to simplefy

if i have a file.dll downloaded to a user computer C:\Documents and Settings\[%UserName%]\Local Settings\Temp\myprog\file.dll.
in my setup I want to install the file C:\Documents and Settings\[%UserName%]\Local Settings\Temp\myprog\file.dll in c:\program files\myprog\ rgeister it.
if i can do it for the entire files in folder is much better.
how can i make him not include the fil but only the path which is also dynamic (the [%UserName%] is unknown.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

This can be done by using a File Copy/Move operation in the "Files and Folders" page.

First, you create a property in the "Install Parameters" page (for example the property DIR with the value C:\). You use this property in the "Files and Folders" page to create a property-based folder.

Here is an example for the file operation:
Source File
Name: test.txt
Folder: DIR
Destination file
Name: test.txt
Folder: APPDIR (you create the file operation in Application Folder)
Properties
Component: < a component which will be installed >
Operation: Copy

You can read more about the File Copy/Move operation here:
http://www.advancedinstaller.com/user-g ... ialog.html

Now, you need to set the path of the DIR folder to the path you need. For this, you create a "Property set with formatted" custom action under the "InstallUISequence" -> "CostInitialize" standard action:
Property Name: DIR
Formatted Text: [TempFolder]myprog

TempFolder will be resolved at runtime to the "C:\Documents and Settings\[%UserName%]\Local Settings\Temp\" folder.

The file operation will copy the file "test.txt" from the "C:\Documents and Settings\[%UserName%]\Local Settings\Temp\my prog" folder to the installation folder.

If you need to register it you can use a custom action scheduled on "InstallFinalize".

You can read more about custom actions here:
http://www.advancedinstaller.com/user-g ... -page.html

Regards,
Cosmin
Last edited by Cosmin on Mon Jan 21, 2008 11:57 am, edited 1 time in total.
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
justminime
Posts: 5
Joined: Thu Jan 17, 2008 11:34 am

Thank you very much

I'll give it a try
justminime
Posts: 5
Joined: Thu Jan 17, 2008 11:34 am

Can i move all the files from that directory

no just one file.
i tried *.* and i get error 2318
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Please note that if you use *.* as the Name for the Source file (copy all files), you should leave the Name field for the Destination file empty.

Also, I'm not sure if this is why you encountered the problem. Note that the error 2318 means "File does not exist".

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
justminime
Posts: 5
Joined: Thu Jan 17, 2008 11:34 am

i get an error

I'm getting error 2318 means "File does not exist".

and i have an msi text file in temp folder saying:
"The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2318. The arguments are: C:\pagefile.sys, , "

this only heppens when i put *.* in thesource file if im putting the file exact name it copies him and working fine.

B.T.W thanks allot for your quick response
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I'm not sure why you are encountering this behavior. Please send us the AIP with this problem to support at advancedinstaller dot com so we can investigate it.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”