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!

campster
Posts: 15
Joined: Thu Jun 14, 2007 7:54 pm

Folders not getting loaded

I think that I'm making this way too complicated but I have another problem. BTW, the release disk was due on July 1.

I used the following VBS to selectively load features based on user input.

Code: Select all

Sub LoadFiles()
	Dim SelFeature

	selFeature = Session.Property("MSVERSION_PROP") 
	
	Session.FeatureRequestState("Feature_1") = 2 
	Session.FeatureRequestState("Feature_2") = 2 
	Session.FeatureRequestState("Feature_3") = 2 
	
	if selFeature = "VS60" then 
	  Session.FeatureRequestState("Feature_1") = 3 
	end if 
	
	if selFeature = "VS02" then 
	  Session.FeatureRequestState("Feature_2") = 3 
	end if 
	
	if selFeature = "VS03" then 
	  Session.FeatureRequestState("Feature_3") = 3 
	end if

End Sub
For my test case I only had one folder for each feature. These folders were synchronized to a local folder and everything worked as expected. To prepare for the final disk I added the rest of my files into one of the three features. The problem is that only one folder (and it's subfolders) gets installed.

Why would the above cade not load all files within a feature? On the "files and folders" page I've checked the "create folder on tagert machine" but only the first filder i neach group gets loaded.
[/img]
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Please send the AIP file (if not contain any confidential informations) or a small similar test case reproducing this issue to support at advancedinstaller dot com so we can take a look.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
campster
Posts: 15
Joined: Thu Jun 14, 2007 7:54 pm

"

I found the problem but I'm not sure how to fix it. All the files are being loaded but in different locations. When I run the installation, I am changing the install path. All of the files in the application folder are getting loaded in the correct location but the files in the property based folders are geting installed to the default location (C:\ in this case)

On the "Install Parameters" page I have property named VS60DIR with a value of C:\. I created a property based folder by right clicking the "Target Computer". Is this the correct level?

On the "Custom Actions" page I created the "Property set with formatted" action with the property name "VS60DIR" and the formatted text of "[APPDIR]". Do I need the braces? I installed the custom action as stated in your prior posts.

I modified the VBS to look like this but the message box does not display a value for the VS60DIR property. The message box appears but is blank. The second message box displays the correct property for MSVERSION_PROP.

Why is the VS60DIR property not getting set?

I tried to upload my AIP but don't see anyway to upload the file from the forum.

Code: Select all

	selFeature = Session.Property("MSVERSION_PROP") 
	
	Session.Property("COMDIR") = Session.Property("APPDIR")
	Session.Property("VS02DIR") = Session.Property("APPDIR")
	Session.Property("VS03DIR") = Session.Property("APPDIR")
	Session.Property("VS60DIR") = Session.Property("APPDIR")	
	
	Session.FeatureRequestState("Feature") = 3 
	Session.FeatureRequestState("Feature_1") = 2 
	Session.FeatureRequestState("Feature_2") = 2 
	Session.FeatureRequestState("Feature_3") = 2 
	
	msgbox VS60DIR
                msgbox MSVERSION_PROP
	
	if selFeature = "VS60" then 
	  Session.FeatureRequestState("Feature_1") = 3 
	end if 
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
All of the files in the application folder are getting loaded in the correct location but the files in the property based folders are geting installed to the default location (C:\ in this case)
Please make sure you schedule the custom actions under "InstallExecuteSequence" ("Property set with formatted" actions) section also.

Drag & drop (while shift key is pressed) the custom actions from "InstallUISequence->CostInitialize" standard action to "InstallExecuteSequence->CostInitialize" action.

Leave the custom action script as it was in your previous post. Let me know if the problem still persist.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
campster
Posts: 15
Joined: Thu Jun 14, 2007 7:54 pm

I just created a simple version of my project and it works as expected. Doing a page by page comparison I don't see anything obvious that would make a difference.

I do see something strange on the "Organization" page. On the project that does not work correctly I have a groupbos named "Builds" but do not have this box on the small version that works. Why is this box in one project and not the other?

I think that I'm going to rebuid the project from the ground up and see if that fixes anything.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
Why is this box in one project and not the other?
That group box appears in case you have defined more that one build in the "Media" page, you can chose to remove the feature from some builds. If a feature is removed from a build, all other resources that demand that feature (components, component members, class entries, type libraries...) will also be removed from the build.

Regards,
Gigi
_____________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”