Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How to run registry file before building a C# application ?

I have a C# project and I need to run a file called omrTest_form_registry.reg before building the project.

How can I do it ?
Posted

Project->Properties->Build Events->Pre-build event command line
Add any command you want...
 
Share this answer
 
Comments
Allwin456 2-Apr-14 2:03am    
I followed your steps. But what do I need to write inside the 'Pre-build event command line' box ?
Kornfeld Eliyahu Peter 2-Apr-14 2:06am    
[full path to]\regedit.exe /S omrTest_form_registry.reg
Allwin456 2-Apr-14 2:33am    
I'm getting this error - https://copy.com/SIiFInpewjcM ... What might be the reason ?
Kornfeld Eliyahu Peter 2-Apr-14 2:36am    
This error does not make any sense - can you show the whole error?
Allwin456 2-Apr-14 3:05am    
i'm giving you the source code link please download that code and help me out of the problem...http://www.codeproject.com/Articles/451169/Csharp-Optical-Marks-Recognition-OMR-Engine

http://www.codeproject.com/Articles/701167/Csharp-Optical-Marks-Recognition-OMR-Engine?msg=4790691#xx4790691xx
If you don't know what registering a reg file means, i prefer you first take some basic lectures before proceeding to OMR Engine. The ONLY thing you needed to do was to RUN THAT REG FIX BY DOUBLE CLICKING ON THE FILE!!!
 
Share this answer
 

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