Assuming Visual Studio installers do the standard thing, use
MsiGetProductInfo and ask for "ProductID", as here:
http://msdn.microsoft.com/en-us/library/aa370130(VS.85).aspx
Or (again assuming standard behavior) the key is associated with the PIDKEY
property, so you can write [PIDKEY] to the registry using the setup
project's IDE.
--
Phil Wilson
The Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972
"John Whitworth" <sexyjw@g_EEEEEEEEEEEEEEEE_mail.com> wrote in message
news:4b475da7$0$2474$(E-Mail Removed)...
> Hi All,
>
> No - I'm not after a serial number to crack VS2008. I have a legit copy
> already working.
>
> What I want to know is whether I can get hold of the Serial Number that I
> can force a user to enter during setup (Customer Information screen on
> standard VS installer) from within my application, so that I can perform
> some simple validation upon it each time my application runs. I know it
> won't be very secure, but it's just a mild deterrent for a low-value piece
> of software.
>
> I searched on the obvious keywords, and just received tons of warez
> sites - not surprisingly!
>
> Cheers
>
> JW