Talk:MoreInfo plug-in: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
(Doesn't appear to work for *.XLAM files.)
 
 
Line 3: Line 3:
I'm installing an excel add-in for Office 2007 and want to check for previous versions based on information stored in the Extended File Info.  I was hoping this would do it.   
I'm installing an excel add-in for Office 2007 and want to check for previous versions based on information stored in the Extended File Info.  I was hoping this would do it.   


I can do it IN VBScript easily using...
I can do it in VBScript easily using...
<highlight-vb>Set objShell = CreateObject("Shell.Application")
<highlight-vb>Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(FileRoot)
Set objFolder = objShell.Namespace(FileRoot)

Latest revision as of 12:43, 9 August 2011

Doesn't appear to work for *.XLAM files.

I'm installing an excel add-in for Office 2007 and want to check for previous versions based on information stored in the Extended File Info. I was hoping this would do it.

I can do it in VBScript easily using...

Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(FileRoot)
Set objItem = objFolder.Items.Item(FileName)
 
Dim Author, Title, Subject, Comments
 
Author   = objFolder.GetDetailsOf(objItem,  9)
Title    = objFolder.GetDetailsOf(objItem, 10)
Subject  = objFolder.GetDetailsOf(objItem, 11)
Comments = objFolder.GetDetailsOf(objItem, 14)

Zinthose 12:43, 9 August 2011 (UTC)