Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

ComponentSetTarget not working


1 reply to this topic

Brad Younie

Brad Younie
  • Members
  • 6 posts

Posted 05 November 2001 - 21:47

First I created a Script-defined folder in the destination of a file group. Then in my script I read a path from the registry and call ComponentSetTarget to copy it to the property that I specified in the destination.

When I run the install, it complains that "<szPath>\somesubdir" is not a valid path.

I used the following code:

RegDBGetKeyValueEx("SOFTWARE\\SomeCompany\\SomeProduct", "AppPath", nvType, svPath, nvSize);
ComponentSetTarget (MEDIA, "<szPath>", svPath);  
szPropertyVar = "<szPath>";
MessageBox (szPropertyVar, INFORMATION);

and it displays:

<szPath>

I made sure that I'm calling this before the call to ComponentTransferData.

I wrote my code exactly like InstallShield's example in their help file. Am I doing something wrong, or is this a bug?



lasenbby

lasenbby
  • Members
  • 744 posts

Posted 06 November 2001 - 16:13

Is doc: ComponentSetTarget
...
"This function cannot be used with script-created component sets."
...