Hi,
I have a click once installation. During the installation it will pop-up to load a license file. What happens is that after I upload I check it always show me the license status is false. Only after I restart then its fine. Below is my codes.
File.Copy(path, destinationPath, true); System.Windows.MessageBox.Show("Validitiy is :" + IsValidLicenseAvailable()); //Application.Current.Shutdown(); if (IsValidLicenseAvailable() == true) { this.DialogResult = true; this.Close(); }So immediately after uploading the status is always false. Thus I was thinking after uploading can I like restart my application rather then close the pop-up and then load my main window?