mat_bruges
Posts: 33
Joined: Tue Mar 11, 2008 12:28 am

Network error while attempting to read from the file

Hi,

I have 4 checkboxes that control which feature will be installed. I have 4 features, each for a specific version of the .NET framework. When the user clicks the "Next" button, the following code runs to ensure the correct feature gets installed:

Code: Select all

Function FrameworkDlgNextClicked() 
  Session.FeatureRequestState("eID_Framework_Runtime_1.1") = 2
  Session.FeatureRequestState("eID_Framework_Runtime_2.0") = 2
  Session.FeatureRequestState("eID_Framework_Runtime_3.0") = 2
  Session.FeatureRequestState("eID_Framework_Runtime_3.5") = 2

  If Session.Property("FRAMEWORK_NET_11")="true" Then 
    Session.FeatureRequestState("eID_Framework_Runtime_1.1") = 3
  ElseIf Session.Property("FRAMEWORK_NET_20")="true" Then
    Session.FeatureRequestState("eID_Framework_Runtime_2.0") = 3
  ElseIf Session.Property("FRAMEWORK_NET_30")="true" Then
    Session.FeatureRequestState("eID_Framework_Runtime_3.0") = 3
  ElseIf Session.Property("FRAMEWORK_NET_35")="true" Then
    Session.FeatureRequestState("eID_Framework_Runtime_3.5") = 3
  End If
End Function
This is working OK for INSTALL, but I can not UNINSTALL. I always get this error:

A network error occurred while attempting to read from the file "c:\windows\installer\My Framework.msi".

Each feature corresponds to a different merge module that gets installed. These are the names of the merge modules:
  • "My Framework (.Net 1.1).msm"
    "My Framework (.Net 2.0).msm"
    "My Framework (.Net 3.0).msm"
    "My Framework (.Net 3.5).msm"
This is the name of the setup:
  • "My Framework 2.0.3.exe"
I don't know why it is looking for "My Framework.msi", it must be something internal to Advanced Installer?

Any ideas? Is this a bug?

Thanks

Mat
mat_bruges
Posts: 33
Joined: Tue Mar 11, 2008 12:28 am

Re: Network error while attempting to read from the file

Come to think of it, I probably need to set the feature request state for each of the 4 features (merge modules) upon uninstall. I can see in the registry which of the 4 features was installed, so I probably only need to enable that one?

Does that sound right? Could it be that the uninstall is trying to remove all 4 features, even though only 1 was installed?

On which event should I place that custom action?

Thanks

Mat
mat_bruges
Posts: 33
Joined: Tue Mar 11, 2008 12:28 am

Re: Network error while attempting to read from the file

I have added the following custom action to my Uninstall event, but it did not work. I got the message that there was an error while executing this script:

Code: Select all

Function SetFrameworkFeatures() 
  Session.FeatureRequestState("eID_Framework_Runtime_1.1") = 2
  Session.FeatureRequestState("eID_Framework_Runtime_2.0") = 2
  Session.FeatureRequestState("eID_Framework_Runtime_3.0") = 2
  Session.FeatureRequestState("eID_Framework_Runtime_3.5") = 2

  If Session.Property("ROADBYTE_INSTALLED_FRAMEWORK_NET")="1.1" Then 
    Session.FeatureRequestState("eID_Framework_Runtime_1.1") = 3
  ElseIf Session.Property("ROADBYTE_INSTALLED_FRAMEWORK_NET")="2.0" Then
    Session.FeatureRequestState("eID_Framework_Runtime_2.0") = 3
  ElseIf Session.Property("ROADBYTE_INSTALLED_FRAMEWORK_NET")="3.0" Then
    Session.FeatureRequestState("eID_Framework_Runtime_3.0") = 3
  ElseIf Session.Property("ROADBYTE_INSTALLED_FRAMEWORK_NET")="3.5" Then
    Session.FeatureRequestState("eID_Framework_Runtime_3.5") = 3
  End If
End Function
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Network error while attempting to read from the file

Hi,

I cannot reproduce this behavior on my test machine. Does this happen on multiple machines? Can you please send us the AIP you are using to support at advancedinstaller dot com so we can investigate it?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”