Allow only one executable per component
I did a Setup Capture with Wise Studio. I have 2 Components that are red. Both show the error is that it contains more than one executable (EXE, DLL, OCX) and Microsoft guidelines allow for only 1 executable per Component. Is the solution to this really this simple:
1.) Right-Click one of the files and view it's Details to see what folder it should install into.
2.) Right-Click top Component tree and choose New > Component.
3.) Give the new component a name and choose the destination folder.
4.) Drag and drop the file into the new component.
5.) Go into the new Component and Right-Click the file and choose Set as Key
Thanks,
Troy
1.) Right-Click one of the files and view it's Details to see what folder it should install into.
2.) Right-Click top Component tree and choose New > Component.
3.) Give the new component a name and choose the destination folder.
4.) Drag and drop the file into the new component.
5.) Go into the new Component and Right-Click the file and choose Set as Key
Thanks,
Troy
0 Comments
[ + ] Show comments
Answers (3)
Please log in to answer
Posted by:
anonymous_9363
13 years ago
Wise doesn't do any validation checking per se after a capture. You have to set a validation process running.
The components are red not because there's more than one EXE but because the component has no key path set.
BTW, this forum is really for questions about errors returned by the WI engine (e.g. 1603, 1721 and so on). You ought to have posted in the 'Package Development' forum. A moderator may move it at some point.
The components are red not because there's more than one EXE but because the component has no key path set.
BTW, this forum is really for questions about errors returned by the WI engine (e.g. 1603, 1721 and so on). You ought to have posted in the 'Package Development' forum. A moderator may move it at some point.
Posted by:
troy_in_wi
13 years ago
VBScab,
You are correct, I should have posted it in Package Development. Sorry, my bad.
The 2 initial Components were red because they had more than one executable in them. By following my steps, it appears to have fixed them.
Now I wonder if there is a faster way to do it. One of my Components has 19 executables in it. That's a lot of 5-step repitition.
You are correct, I should have posted it in Package Development. Sorry, my bad.
The 2 initial Components were red because they had more than one executable in them. By following my steps, it appears to have fixed them.
Now I wonder if there is a faster way to do it. One of my Components has 19 executables in it. That's a lot of 5-step repitition.
Posted by:
zipsantro
13 years ago
There is way in Wise where you can specify "Component Rule" to "One File per Component".
To Set open Windows Installer Editor --> Components Rule Menu -> Select Rule Set and Select Rule Set Name as "One file per component".
Make sure that you do this change before taking your capture. Now onwards you get only one file per component.
This a Recomended way and a best practice to follow.
Jeeoo!
Santro
To Set open Windows Installer Editor --> Components Rule Menu -> Select Rule Set and Select Rule Set Name as "One file per component".
Make sure that you do this change before taking your capture. Now onwards you get only one file per component.
This a Recomended way and a best practice to follow.
Jeeoo!
Santro

so that the conversation will remain readable.