Click here to Skip to main content
15,890,185 members
Home / Discussions / C#
   

C#

 
GeneralRe: Process Priority Pin
Julian Bucknall [MSFT]28-Jul-03 11:51
Julian Bucknall [MSFT]28-Jul-03 11:51 
GeneralRe: Process Priority Pin
eggie528-Jul-03 11:58
eggie528-Jul-03 11:58 
GeneralRe: Process Priority Pin
David Stone28-Jul-03 12:28
sitebuilderDavid Stone28-Jul-03 12:28 
GeneralOT Pin
J. Dunlap28-Jul-03 12:17
J. Dunlap28-Jul-03 12:17 
GeneralEncrypting\Decrypting Pin
draco_iii28-Jul-03 9:39
draco_iii28-Jul-03 9:39 
GeneralRe: Encrypting\Decrypting Pin
Julian Bucknall [MSFT]28-Jul-03 11:28
Julian Bucknall [MSFT]28-Jul-03 11:28 
GeneralRe: Encrypting\Decrypting Pin
draco_iii29-Jul-03 2:13
draco_iii29-Jul-03 2:13 
QuestionInstaller "Catch 22" with versioning? Pin
Arun Bhalla28-Jul-03 9:15
Arun Bhalla28-Jul-03 9:15 
I'm borrowing some code from Pavel's Command Prompt Explorer Bar installer to use in my own explorer bar's installer.

Recently I've been thinking that using an assembly version like "1.0.*" (hence, for example, "1.0.1304.25935") would be useful, at least for development and debugging purposes. (Someone please point out the cons to this idea!)

Well, anyway, Pavel's installer basically exists to register the assembly, and unregister the assembly at uninstallation. So it all comes down to getting the relevant assembly so it can be fed to RegistrationServices.RegisterAssembly().

Currently the code for getting the relevant assembly looks like this:
Assembly VisITBarAssembly
{
    get
    {
        return AppDomain.CurrentDomain.Load("VisIT, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4d504ee06f99380a");
    }
}


This works because the version is hardcoded to "1.0.0.0" in Installer.cs as well as AssemblyInfo.cs. I'd like to remove this string from Installer.cs so I can only worry about AssemblyInfo.cs whenever I want to bump up a version number. (Bonus points if I could remove the need to change both AssemblyInfo.cs and the version number in the Setup project! Additional bonus points if I can access the Setup project's "Manufacturer" etc. fields from the application, but I guess the best (or only?) solution would be to use the Registry.)

So what are some good ways to go about this? I think using the Registry might be one way to go about it, having to store the assembly's full name somehow (programmatically) in a registry entry. Personally I think it would be nicer to avoid it, but hey! If I assume a constant GUID, then I could look it up in the registry (it's already stored there, but then again, this might implicitly get stored from the RegisterAssembly call).

It would be even nicer, I think, to have a dynamic GUID, that allows the GUID to change with the Product GUID (set in the Setup project), but I don't know if that's feasible.

And furthermore, what can I do with the savedState object that is an argument to so many Installer event handlers?

Any tips, comments, or smooth suggestions?

Thanks,
Arun
GeneralIn Bitmap hell Pin
RB@Emphasys28-Jul-03 8:13
RB@Emphasys28-Jul-03 8:13 
GeneralRe: In Bitmap hell Pin
Not Active28-Jul-03 9:25
mentorNot Active28-Jul-03 9:25 
Questionhow to use SendMessage() from C#?? Pin
misterbear28-Jul-03 7:57
misterbear28-Jul-03 7:57 
AnswerI know one more thing... Pin
misterbear28-Jul-03 8:18
misterbear28-Jul-03 8:18 
GeneralRe: I know one more thing... Pin
J. Dunlap28-Jul-03 8:51
J. Dunlap28-Jul-03 8:51 
GeneralRe: I know one more thing... Pin
misterbear28-Jul-03 10:35
misterbear28-Jul-03 10:35 
GeneralRe: I know one more thing... Pin
J. Dunlap28-Jul-03 10:43
J. Dunlap28-Jul-03 10:43 
GeneralRe: I know one more thing... Pin
Eric Gunnerson (msft)28-Jul-03 11:17
Eric Gunnerson (msft)28-Jul-03 11:17 
GeneralRe: I know one more thing... Pin
leppie28-Jul-03 11:15
leppie28-Jul-03 11:15 
GeneralRe: I know one more thing... Pin
J. Dunlap28-Jul-03 11:21
J. Dunlap28-Jul-03 11:21 
GeneralRe: I know one more thing... Pin
leppie28-Jul-03 11:27
leppie28-Jul-03 11:27 
GeneralHttpWebRequest Timeout Pin
albean28-Jul-03 5:13
albean28-Jul-03 5:13 
GeneralRe: HttpWebRequest Timeout Pin
Arun Bhalla28-Jul-03 5:35
Arun Bhalla28-Jul-03 5:35 
GeneralRe: HttpWebRequest Timeout Pin
albean28-Jul-03 6:08
albean28-Jul-03 6:08 
GeneralRe: HttpWebRequest Timeout Pin
Arun Bhalla28-Jul-03 6:11
Arun Bhalla28-Jul-03 6:11 
GeneralPallaControls and combobox Pin
totig28-Jul-03 2:38
totig28-Jul-03 2:38 
GeneralRe: PallaControls and combobox Pin
Alex Korchemniy28-Jul-03 4:03
Alex Korchemniy28-Jul-03 4:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.