Best practice to move registy keys in Wise Packagestudio
Right now i'm editting the registry table with the replace function but it would be nice if i can use drag and drop somewhere.
Thx in advance
0 Comments
[ + ] Show comments
Answers (13)
Please log in to answer
Posted by:
MSIPackager
15 years ago
Posted by:
MSIPackager
15 years ago
Posted by:
AngelD
15 years ago
Move it under HKCR instead and depend on the ALLUSERS property where the com info to be written instead.
WSIFile = Wscript.Arguments(0)
Set oWFWI = CreateObject("WfWi.Document")
oWFWI.Open(WSIFile)
Set tblRegistry = oWFWI.WTables("Registry")
For Each rowSource In tblRegistry.WRows ' process each row in Registry table
If rowSource("Root") = 1 AND Mid(rowSource("Key"), 1, Len("Software\Classes\")) Then
rowSource("Root") = 0
rowSource("Key") = Mid(rowSource("Key"), Len("Software\Classes\") + 1)
End If
Next
Call oWFWI.Save(WSIFile)
WSIFile = Wscript.Arguments(0)
Set oWFWI = CreateObject("WfWi.Document")
oWFWI.Open(WSIFile)
Set tblRegistry = oWFWI.WTables("Registry")
For Each rowSource In tblRegistry.WRows ' process each row in Registry table
If rowSource("Root") = 1 AND Mid(rowSource("Key"), 1, Len("Software\Classes\")) Then
rowSource("Root") = 0
rowSource("Key") = Mid(rowSource("Key"), Len("Software\Classes\") + 1)
End If
Next
Call oWFWI.Save(WSIFile)
Posted by:
AngelD
15 years ago
Posted by:
MSIPackager
15 years ago
Posted by:
MSIPackager
15 years ago
Posted by:
AngelD
15 years ago
Posted by:
aogilmor
15 years ago
Posted by:
AngelD
15 years ago
Posted by:
doak
15 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.