PDA

View Full Version : SdFeatureTree Problem



Manish Siwach
06-14-2004, 09:35 AM
Hi,
I'm using Installshield DevStudio 9 and creating a new "InstallScript MSI Project". I'm trying to install selective features on my machine by following the given Scenerio.

1)Create folders under INSTALLDIR in "Files and Folders" options:

folder1
folder2
folder3

2)Create features under 'DefaultFeature' in the "Features" option:

DefaultFeature - "Destination" property set to "INSTALLDIR"
-feature1 - "Destination" property set to [INSTALLDIR]folder1
-feature2 - "Destination" property set to [INSTALLDIR]folder2
-feature3 - "Destination" property set to [INSTALLDIR]folder3

I have not changed any other property and nor have I made any changes to the InstallScript.

Now, when the SdFeatureTree dialod box is displayed and I unselect "feature2" and continue with my installation, after the installation is over, I find that "folder2" is created, which should not happen.


Thanks in Advance For Help :)

Manish Siwach
06-16-2004, 06:23 AM
I solved it by my own

Kochise
06-25-2004, 02:57 AM
Give us some clues ! Could help newbies !

Kochise

Manish Siwach
06-25-2004, 03:47 AM
The solution is very simple, Follow the Steps as given below
1)Under "Components" feature tree, right click and choose "component wizard".
2)Assign New feature name.
3)From Welcome Wizard , choose "Create component for me using Best Practices."
4)Choose the destination by selecting the "Browse, create or modify a directory entry." in the next dialogbox.
5)If you want to add folder and its files then choose "Add Folder.."
option.
6)click next and then finish.

That's All

The following code is automatically created in [InstallSheild MSI Project] type.

Dlg_SdFeatureTree:
szTitle = "";
szMsg = "";
if (nSetupType = CUSTOM) then
nResult = SdFeatureTree(szTitle, szMsg, INSTALLDIR, "", 2);
if (nResult = BACK) goto Dlg_SdAskDestPath;
endif;

Simply Select the features you want to install.

I hope it will help newbies...