I have created a VS 2003 setup project.. I have included a Registration
Dialog and placed it in the end node right before
the Finish Dialog. I have created an executable that takes arguments in its
"Main" function (C#) called Registration.exe.
I have set the Executable property of the Registration Dialog to the primary
output of the Registration.exe project and
added that project to my Application folder of the installing application. I
have also set the the arguments to the Customer
Information Dialog/ Windows Installer properties [USERNAME] [COMPANYNAME]
[PIDKEY]. I know that the
Registration Dialog's "Register Now" button should call the Registration.exe
so that I may register my user. In my case
the Registration.exe will make a call out to a Web Service and register my
user.So my problem is that when I run the install
all goes well all the way thru to the Registration Dialog but when I click
on the "Register Now" button I get the error of
"System I/O FileNotFound Exception". I am assuming that the Installer can
not find the Registration.exe executable. I do
not know what I am missing here. There just isn't a lot of info on the
VS.Net windows installers and such!
If there is anyone out there that has done this in .Net, please help. Your
assistance would be much appreciated...
Steve Graddy MCP, MCAD.Net
Orgbrat Consulting
orgbrat@orgbrat.com
You can't easily get there with a VS setup project. Your program isn't even
on the system when you're in the UI stage, and VS doesn't let you run custom
actions from the UI sequence. The simplest thing for you do to is just add
your registration program as a custom action, but getting hold of
COMPANYNAME and USERNAME in an executable can't be done because executables
don't have access to the installation's properties, so you'd need to save
them in the registry. If you're allowing the user to skip registration
during the install, then you are providing some other way to register, so
why not simply make registration happen the first time your app runs? It
looks like you need to add that option anyway. Save company name and user
name in the registry at install time and get them from there in the
registration program.
90 % of the time, the answer to "Why can't I do this in VS?" is "VS isn't
designed as a fully featured installer tool to let you do things like this".
See http://installsite.org/pages/en/msi/authoring.htm

Signature
Phil Wilson
[MVP Windows Installer]
> I have created a VS 2003 setup project.. I have included a Registration
> Dialog and placed it in the end node right before
[quoted text clipped - 23 lines]
> Orgbrat Consulting
> orgbrat@orgbrat.com