I would like to run a similar winst script:
Code: Alles auswählen
...
DefStringList $result1$
DefStringList $result2$
Set $result1$ = createStringList ('ProgDir1','ProgDir2', 'Progdir3', 'ProgDir4')
for $dirString$ in $result1$ do Sub_searchCycle
[Sub_searchCycle]
Set $result2$ = getRegistryKeyList32("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall")
for $app$ in $result2$ do Sub_searchApp32
[Sub_searchApp32]
set $appKey$ = "[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" + "$app$" + "] UninstallString
if contains($appKey$,$dirString$)
...
endif
Code: Alles auswählen
[5] [Jan 22 15:44:59:847] Warning: The section "Sub_searchApp32" (called in line 2 of the calling section) does not exist or is empty
[6] [Jan 22 15:44:59:847]
[6] [Jan 22 15:44:59:847] ~~~~~~~ Start Sub ~~~~~~~ Sub_searchApp32
[6] [Jan 22 15:44:59:847]
[6] [Jan 22 15:44:59:847] ~~~~~~~ End Sub ~~~~~~~ Sub_searchApp32
[6] [Jan 22 15:44:59:847]
1. Can I call Sub_ section from Sub_ section?
- If yes, how?
- If not, Is there any plan to implement this into any later revision, and when?
2. Is there any other method to use nested loop in winst scripts?
3. If I can solve this problem, Can I use in the second loop the first loop variable (here is: $dirString$) ?
Thank you for your answers,
--
Arpad Kiss