Click here to Skip to main content
15,939,065 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have to run a .msi file through c# code and it generate the mst file. I need to save the .mst file in back end. I can get the save dialog box , but it should save automatically without the user interface

We can do the same functionality in autoit script.

C#
WinWait("Save Transform")
WinActivate("Save Transform")
ControlSetText ("Save Transform", "","Edit1", $strMSTNamewithFullPath )
Send("{Enter}")


i want to do the same in c# .

Please assist.
Posted
Comments
Richard MacCutchan 5-May-15 8:44am    
Then don't use the SaveDialog.
Renjith_R 5-May-15 9:02am    
But i need to save the file.
Richard MacCutchan 5-May-15 9:11am    
Then save it. The SaveDialog is a dialog for collecting information from the user, it has nothing to do with saving of files.
Renjith_R 5-May-15 9:18am    
If i run a command like this "D:\Users\\Desktop\MSITransformTool.exe" D:\Users\Desktop\Orca.Msi . it will create a .mst file and it open a save-as dialog popup. i want to pass the filepath parameter and should save automatically without any user interaction.(suppress the save dialog box)
Richard MacCutchan 5-May-15 9:20am    
As I said, do not use the dialog. You have the filename, so just open the file and write the information to it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900