Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Wrong ScreenX and ScreenY value


6 replies to this topic

LMichel

LMichel
  • Full Members
  • 4 posts

Posted 06 January 2014 - 16:20

Hello,

 

I've written a custom action to determine the screen format (4/3, 16/9, 16/10)

 

My custum action is part of the install execute sequence.

 

It seems that a wrong value for theses properties is returned : 1024x768 instead of 1366x768

 

Is it a bug ? Can this be fixed ?

 

Regards



VBScab

VBScab
  • Full Members
  • 436 posts

Posted 08 January 2014 - 11:00

By definition, your custom action is acting outside the control of the Windows Installer engine so any bug will be in whatever it is your CA is calling (I'm guessing it's a WMI call?) Does the test work externally, i.e. outside of your MSI?


- Don't know why 'x' happened? Want to know why 'y' happened? ProcMon will tell you.
- Try using http://www.google.com before posting.
- I answer questions only via forums. Please appreciate the time I give here and don't send me personal emails.

LMichel

LMichel
  • Full Members
  • 4 posts

Posted 08 January 2014 - 11:39

By definition, your custom action is acting outside the control of the Windows Installer engine so any bug will be in whatever it is your CA is calling (I'm guessing it's a WMI call?) Does the test work externally, i.e. outside of your MSI?

 

ScreenX and ScreenY are properties that are set by Windows installer. My CA just read the value.

http://msdn.microsof...9(v=vs.85).aspx



VBScab

VBScab
  • Full Members
  • 436 posts

Posted 08 January 2014 - 12:53

Well, saw my legs and call me "Shorty"!! You really do learn something every day!

In which sequence is your CA running?


- Don't know why 'x' happened? Want to know why 'y' happened? ProcMon will tell you.
- Try using http://www.google.com before posting.
- I answer questions only via forums. Please appreciate the time I give here and don't send me personal emails.

LMichel

LMichel
  • Full Members
  • 4 posts

Posted 08 January 2014 - 15:06

Well, saw my legs and call me "Shorty"!! You really do learn something every day!

In which sequence is your CA running?

 

Don't worry for your legs :)

 

My CA is running into install execute (immediate execution)  just after AppSearch. I've tryed to move my CA at several places into the install execute with the same result.

 

It works fine Under Windows Xp but not Under Windows 7.



LMichel

LMichel
  • Full Members
  • 4 posts

Posted 08 January 2014 - 15:24

An additional information this is Windows 7 - 64Bits



VBScab

VBScab
  • Full Members
  • 436 posts

Posted 08 January 2014 - 16:48

>It works fine Under Windows Xp but not Under Windows 7.
I'd bet a fair amount that it is indeed the 64-bit vs 32-bit "gotcha". Personally, I'd abandon using those properties and use WMI in a script. That should work in any "bitness" :-)


- Don't know why 'x' happened? Want to know why 'y' happened? ProcMon will tell you.
- Try using http://www.google.com before posting.
- I answer questions only via forums. Please appreciate the time I give here and don't send me personal emails.