steve_rm
Oct 8th, 2006, 01:25 AM
Hello,
I found a good solution using clickonce, for detecting if the application is first run. Using the following code:
If (System.Deployment.Application.ApplicationDeployment.CurrentDeployment.IsFirstRun)) Then
Dim setConnection As New ServerSettings()
setConnection.Show()
Else
Dim logMeIn As New Login()
logMeIn.Show()
End If
However, the customer has just changed their mind. And they they want to specify the location of where they want to install the application. Clickonce only has a default that cannot be changed.
So I using the ms installer. However the above code does not work for it. It seems
I would like the serverSettings to run only on first startup. However, I am not sure about the code for this, as the above does not work.
Does amyone know the synstax for 'first run' when using ms installer?
I think I am destined not to get this finished, with the customer changing their mind.
Many thanks for your help,
Stteve
I found a good solution using clickonce, for detecting if the application is first run. Using the following code:
If (System.Deployment.Application.ApplicationDeployment.CurrentDeployment.IsFirstRun)) Then
Dim setConnection As New ServerSettings()
setConnection.Show()
Else
Dim logMeIn As New Login()
logMeIn.Show()
End If
However, the customer has just changed their mind. And they they want to specify the location of where they want to install the application. Clickonce only has a default that cannot be changed.
So I using the ms installer. However the above code does not work for it. It seems
I would like the serverSettings to run only on first startup. However, I am not sure about the code for this, as the above does not work.
Does amyone know the synstax for 'first run' when using ms installer?
I think I am destined not to get this finished, with the customer changing their mind.
Many thanks for your help,
Stteve