I have a MSI deployment project, I have added Custom Install, remove ,rollback actions in dll. Inside custom install action I am checking some condition ,according to result of the condition I need to rollback the installation. My question is how i will call the roll back action. I saw in some where that we can use
throw
new InstallException("ERROR_MESSAGE");
but this statements gives lot of error like:
install.cpp(222) : error C2061: syntax error : identifier 'InstallException'
install.cpp(225) : error C2143: syntax error : missing ';' before '}'
install.cpp(225) : error C2143: syntax error : missing ';' before '}'
install.cpp(225) : error C2143: syntax error : missing ';' before '}'
install.cpp(225) : error C2143: syntax error : missing ';' before '}'
install.cpp(225) : error C2143: syntax error : missing ';' before '}'
install.cpp(225) : error C2143: syntax error : missing ';' before '}'
install.cpp(225) : error C2143: syntax error : missing ';' before '}'
install.cpp(225) : error C2143: syntax error : missing ';' before '}'
can you help me to figure out what i am doing wrong....