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

LongPathToShortPath & Msi*etProperty


1 reply to this topic

Cygnusx1

Cygnusx1
  • Members
  • 29 posts

Posted 01 June 2001 - 13:48

I need to use LongPathToShortPath on INSTALLDIR for a registry entry.  The problem is that the files/folders do not exist until after ALL the sequences take place (by design?).
I can get the desired value (MessageBox), but I can not write it.
How can I retrieve INSTALLDIR's short filename and MsiSetProperty for a write to the registry ( [SHORTFILENAME]\hKey\value )?  Do I use deferred execution?  If so, DocID#104413 is confussing to me.

Thank You


Irina

Irina
  • Members
  • 227 posts

Posted 05 June 2001 - 15:03

Hi Cygnusx1,
I think you can create immediately CA to retrieve Windows Installer property INSTALLDIR (use MsiGetProperty(...)). Then change it and set another yours property like SHORTFILENAME (use MsiSetProperty). And use this property in IDE "Configure the targetSystem\Registry" like
"YoursValue     SHORTFILENAME"
Good luck.