| InstallSite · E-mail and password recovery note · Contact |
Help
Search
Members
Calendar
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
| Pages: (2) [1] 2 ( Go to first unread post ) | ![]() ![]() ![]() |
| finding_this_difficult |
Posted: 2005-06-29 17:09
|
|
Group: Members Posts: 21 Member No.: 10731 Joined: 2005-06-29 |
Hi,
I am using FeatureGetData to determine if a feature has been selected by a user. This sort of ties into a previous post I made (rather recently) and it seems that this does not work as I (and the documentation) think. I have a feature: myFeature (I am not sure where I can be assured the name is actually "myFeaure" as I am trying to use below) Here is what I am doing: FeatureGetData (MEDIA, "myFeature", FEATURE_FIELD_SELECTED, nvResult, svResult) I have tried about every different "name" I can think of in place of "myFeature", but in the end I get the same result, it cannot find the feature. My project is Basic MSI. Thanks for any help, A |
| Stefan Krueger |
Posted: 2005-07-04 14:35
|
![]() InstallSite.org Group: Administrators Posts: 11483 Member No.: 1 Joined: 2001-02-07 |
According to the documentation FeatureGetData only work for "InstallScript" and "InstallScript MSI" projects, not for "Basic MSI" projects.
-------------------- Stefan Krüger
Microsoft Windows Installer MVP InstallSite.org Stefan's Blog ![]() Read this before sending me e-mail or private messages |
| donimoni |
Posted: 2008-02-18 08:50
|
|
Group: Full Members Posts: 13 Member No.: 14414 Joined: 2008-02-18 |
Hi
So how can i read from Basic MSI projects the Feature selected data ??? |
| Stefan Krueger |
Posted: 2008-02-19 13:07
|
![]() InstallSite.org Group: Administrators Posts: 11483 Member No.: 1 Joined: 2001-02-07 |
If you want to use this as a condition, try something like:
&myFeature=3 Or (!myFeature=3 And &myFeature<>2) For more details see MSI help topic "Conditional Statement Syntax" at http://msdn2.microsoft.com/en-us/library/a...012(VS.85).aspx -------------------- Stefan Krüger
Microsoft Windows Installer MVP InstallSite.org Stefan's Blog ![]() Read this before sending me e-mail or private messages |
| donimoni |
Posted: 2008-02-19 13:19
|
|
Group: Full Members Posts: 13 Member No.: 14414 Joined: 2008-02-18 |
Thank you for the quick response...
and can you tell me how can i acticate a function only when uninstalling? |
| Stefan Krueger |
Posted: 2008-02-19 14:01
|
![]() InstallSite.org Group: Administrators Posts: 11483 Member No.: 1 Joined: 2001-02-07 |
Condition for uninstall of a feature:
&myFeature=2 Condition for complete uninstall (doesn't work before InstallValidate): REMOVE~="ALL" -------------------- Stefan Krüger
Microsoft Windows Installer MVP InstallSite.org Stefan's Blog ![]() Read this before sending me e-mail or private messages |
| donimoni |
Posted: 2008-03-06 08:45
|
|
Group: Full Members Posts: 13 Member No.: 14414 Joined: 2008-02-18 |
Thanx...
but what is the condition for install only, now in Maintnance mode - > remove-> all my install script actions are called during uninstall. i need the install only condition? and the Maintnance remove + simple msiexex.exe /x remove, condition? in another issue in basic msi project when im trying to add Server config->IIS directory from the installation designer, the setup is always interuptted and fails in the middel. any ideas? and where is the install log opertion located(how to activate it if needed)? |
| Stefan Krueger |
Posted: 2008-03-06 17:35
|
![]() InstallSite.org Group: Administrators Posts: 11483 Member No.: 1 Joined: 2001-02-07 |
The condition for a first time install is:
Not Installed For a complete uninstall: REMOVE~="ALL" For any maintenance operation (repair, modify, uninstall, anything except first time install): Installed If uninstall was called from the MaintenanceWelcome dialog: UILevel=5 If uninstall was called from msiexec.exe /x it's a lower value, probaly: UILevel=2 but you better double check this. Of course these UILevels apply to install etc. as well. You can turn on msi logging in InstallShield or useone of the methods described here: http://www.msifaq.com/a/1022.htm -------------------- Stefan Krüger
Microsoft Windows Installer MVP InstallSite.org Stefan's Blog ![]() Read this before sending me e-mail or private messages |
| donimoni |
Posted: 2008-03-09 09:28
|
|
Group: Full Members Posts: 13 Member No.: 14414 Joined: 2008-02-18 |
Thank you for the answers...
i have another 2: 1.The setup build add's this files by itself,probebly from scanning refrences. (its not coming from my distrib folders) System.IdentityModel.dll System.IdentityModel.Selectors.dll System.Printing.dll System.Runtime.Serialization.dll System.ServiceModel.dll System.Workflow.Activities.dll System.Workflow.ComponentModel.dll System.Workflow.Runtime.dll i don't see these files in the ApplicationData->Files and folders. so how do i remove them from my build? 2.i'm using the SETUPEXEDIR property to get to the Disk1 files, but if the setup is started from the MSI file, this property is empty. any idea? thank you |
| donimoni |
Posted: 2008-03-09 11:15
|
|
Group: Full Members Posts: 13 Member No.: 14414 Joined: 2008-02-18 |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\InstallShield Uninstall Information\{840ED82B-C177-4A3C-AB06-B244A7DD5F3C}]
"CLIENT_FOLDER_NAME"="PcimClient" this information has been added to my registry, where as CLIENT_FOLDER_NAME is one of the properties i use. from some reason it has been added somtime ago and now it doesn't get the true value i set into it during the setup proccess. so how can i control extra informtion writen into regsitry under this product code installation(for uninstall purpose)? |
| donimoni |
Posted: 2008-03-09 16:51
|
|
Group: Full Members Posts: 13 Member No.: 14414 Joined: 2008-02-18 |
UILevel
is set to value 5 when i'm in maintnance mode, for modify repair,remove. all i need is a condition that would be called for 1.Install,Repair,Modify: (Not Installed) OR (Installed AND UILevel <>5) this doesn't work cause in modify the UILevel =5. can you give me the complete condition syntax? |
| Stefan Krueger |
Posted: 2008-03-10 15:07
|
||||||||
![]() InstallSite.org Group: Administrators Posts: 11483 Member No.: 1 Joined: 2001-02-07 |
Turn off dependency scanning (for your components, switch .NET scan to "proeprties only").
Try the SourceDir property instead.
Check the Registry view.
I don't understand the question.
-------------------- Stefan Krüger
Microsoft Windows Installer MVP InstallSite.org Stefan's Blog ![]() Read this before sending me e-mail or private messages |
||||||||
| donimoni |
Posted: 2008-03-10 16:35
|
|
Group: Full Members Posts: 13 Member No.: 14414 Joined: 2008-02-18 |
what is the condition syntax that will activate my action only for :Install,repair?
and i have a checkbox that is connected to a property(with value 0) and its always shown as checked, (i also tryied to configure Use property as integer with no help) what am i doing wrong? |
| Stefan Krueger |
Posted: 2008-03-10 16:48
|
![]() InstallSite.org Group: Administrators Posts: 11483 Member No.: 1 Joined: 2001-02-07 |
I guess to differentiate between repair and modify, you'd have to look at the properties REINSTALL and ADDLOCAL, ADDSOURCE, ADDDEFAULT.
To un-check a check box you must un-define (un-set) the property. You could do this in a control event by setting the property to: {} which means: clear the property. -------------------- Stefan Krüger
Microsoft Windows Installer MVP InstallSite.org Stefan's Blog ![]() Read this before sending me e-mail or private messages |
| donimoni |
Posted: 2008-03-11 14:37
|
|
Group: Full Members Posts: 13 Member No.: 14414 Joined: 2008-02-18 |
setting the property to: {} is not working also i tried from the startup to set it to blank or "0" and the checkbox is checked all the time!??
in another issue i have a feature with property Required=Yes. i'm working on Basic Msi project, in Custom Setup ->my feature has 3 menu to configure the 3 one is "this feature will be installed when required" and if selected all the feature's component's are not installed. how can i prevent this option??? |
Pages: (2) [1] 2 |
![]() ![]() ![]() |