Click here to Skip to main content
15,885,278 members

Comments by vijayr (Top 26 by date)

vijayr 17-May-11 9:08am View    
@Cimperiali: i am also facing the same issue with AccessViolationException and your suggestion is fine and it's working good.
Here My Question, Why it's throwing the error in OpenFileDialog ? because there is no connectivity between database and OpenFileDialog.
And also i found one more solution(but it's not good)
Here the code is

public class OpenDialogBox
{
public string _filter { get; set; }
public string _selectedFile { get; set; }
public System.Windows.Forms.DialogResult _dialog { get; set; }

public void OpenDig()
{
try
{
System.Threading.Thread th = new System.Threading.Thread(new System.Threading.ThreadStart(Folder));
th.IsBackground = true;
th.Start();
System.Threading.Thread.Sleep(1000);
if (th.IsAlive)
{
th.Abort();
}
}
catch (System.Threading.ThreadAbortException ex)
{

}
//Folder();
System.Windows.Forms.OpenFileDialog OF = new System.Windows.Forms.OpenFileDialog();
OF.Filter = _filter;
OF.AutoUpgradeEnabled = false;
OF.InitialDirectory = "C:\\";
_dialog = OF.ShowDialog();
_selectedFile = OF.FileName;
//System.Windows.Forms.MessageBox.Show(_selectedFile);
//System.Windows.Forms.MessageBox.Show(OF.FileName.ToString());
}

void Folder()
{
try
{
System.Windows.Forms.FolderBrowserDialog fd = new System.Windows.Forms.FolderBrowserDialog();
fd.ShowDialog();
}
catch (Exception ex)
{

}

}
}
vijayr 2-May-11 8:30am View    
Thanks you very much for giving valuable data for me..
here i have doubt, how i can change or set the packagecode ? because there is no direct way for to change the packagecode

Thanks
Vijay r
vijayr 2-May-11 8:20am View    
i am agree with ur point.if i am executing the same .msi, then no issue.
but if i do rebulid and clicking the .msi file
Then it's giving "Another version of this product is already installed.Installation of this version cannot continue."
kindly give me the clue
vijayr 2-May-11 5:39am View    
hi,

Thanks for data.

i have one more question. if already installed same version software in system, Again installing time how to get Repair, Remove and Uninstall Options, If newer version is going to install same software how to get Upgrade options through Install shield.....
vijayr 14-Apr-11 3:56am View    
okay thks but i have question

is it possible to use this Msjet40.dll from externally