- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Apr 25, 2012
08:21 AM
Component not installed
I have a 2012 Installscript project. I added a component that contains a SQLite database file. For the Destination I created a variable . In the FirstUIBefore function I used FeatureSetTarget(MEDIA, "", "C:\\DemoDB").
When I ran the install the directory was not created. I then modified the script to check for the existence of the directory and if not found created it with CreateDir. I ran the install again, the directory was created but the file in the component was not copied into that directory.
I then tried creating the folder in the Files and Folders view and inserting the file there also. When I run the install that does not create the directory or copy the file.
Do I have to create the directory and copy the file into it manually? I can do that but thought surely Installshield could handle that?
any help would be appreciated.
thanks!
When I ran the install the directory was not created. I then modified the script to check for the existence of the directory and if not found created it with CreateDir. I ran the install again, the directory was created but the file in the component was not copied into that directory.
I then tried creating the folder in the Files and Folders view and inserting the file there also. When I run the install that does not create the directory or copy the file.
Do I have to create the directory and copy the file into it manually? I can do that but thought surely Installshield could handle that?
any help would be appreciated.
thanks!
2 Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
May 02, 2012
04:27 AM
Did you get the return value of FeatureSetTarget()?
What does that say?
What does that say?
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
May 02, 2012
07:13 AM
The Help for FeatureSetTarget() says it always returns 0 . Is there some other way to determine what FeatureSetTarget is doing?
