Jump to content
Ketarin forum

Etz

Members
  • Posts

    143
  • Joined

  • Last visited

Everything posted by Etz

  1. Net Framework 4.5 is required... And you really should stop using XP now... https://ketarin.org/forum/topic/3859-ketarin-183-beta/?p=10565 Or Stick with version 1.8.0 it Requires 4.0 which is available for XP.
  2. Hard to say, without seeing the whole template... Is {Version_MONTH} even resolved? As I have no problems with combining multiple variables in such way: {path}\{category}\{appname} v.{version}.{url:ext}
  3. Well, I seem to be always get caught, when trying to download something from Sourceforge, hence using Wget as Useragent to avoid it.
  4. Better use Wget as "user agent" or you may get caught to redirect loop Wget/1.9.1
  5. Maybe you should really add #requires statement silently to PowerShell scripts, avoids lot of confusion what versions are supported.
  6. Write-Host would write into "log" window. And I would avoid replacing dll`s as there may be changes between those.
  7. Nevermind, I`m an idiot... Get-Content (Join-Path $($GlobalVars.item('settings').cachedcontent)\"K-Lite Codec Pack"\klcp_standard_unattended.ini) should be replaced with: (Get-Content (Join-Path $($GlobalVars.item('settings').cachedcontent)\"K-Lite Codec Pack"\klcp_standard_unattended.ini)) So this was kind of expected behavior...unless Get-Content is enclosed into parenthesis it will leave file open.
  8. Wondering why this does not work in Ketarin, while similar operation works in everywhere else: if ((Get-WmiObject -Class CIM_VideoController).Caption -like "Intel*") { $hwa_lav_hwaccel = 2 } else { $hwa_lav_hwaccel = 4 } Get-Content (Join-Path $($GlobalVars.item('settings').cachedcontent)\"K-Lite Codec Pack"\klcp_standard_unattended.ini) | ForEach-Object { $_ -replace "^hwa_lav_hwaccel\s*=.*","hwa_lav_hwaccel=$hwa_lav_hwaccel" } | Set-Content (Join-Path $($GlobalVars.item('settings').cachedcontent)\"K-Lite Codec Pack"\klcp_standard_unattended.ini) File itself is plain txt file and is not open in everywhere else. Reading it seems to work, but Set-Content aka saving part fails, unless I give different filename to it. Seems like Ketarin leaves file open after reading contents of it, so saving to it becomes impossible.
  9. You could use Network share or cloud service for synchronization, there is no need for Database server.
  10. Find a minor bug/feature, when you are saving powershell script as snippet and try to reuse that snippet it won`t work. As it keeps default "Write-Host $App.Name" statement in that window and appends it to last command of the the snippet, instead of just replacing it with snippet. So each time you use a snippet, you have to delete that manually... If intenion is to keep it (by design), it should be either first separate line, so snippet code would be appended afterwards beginning of the second line to it or it should be appended as separate line into end. Right now it appends it to the last command of snipped, which makes snippet code to fail unless you delete it before adding snippet or after adding snippet.
  11. Check out this: https://ketarin.org/forum/topic/3859-ketarin-183-beta/?p=10565 It means you can simply "dot source" your script or even better, implement it directly into Ketarin.
  12. How to download anything from here with Ketarin? http://www.wincert.net/forum/files/file/21-microsoft-visual-bcfj-redistributable-x86x64/ It requires login before you are able to download and I seem to have trouble of figuring out, how to log on into site prior download, with Ketarin...
  13. I think it is by design, as those results are not cached into Jobs.db as well, so it is actually empty as variable retrieves them from jobs.db AFAIK.
  14. Thank you, that would be perfect.
  15. Actually it would be great, if you could implement global variables access too, like Batch scripts have them. As I have quite a few Install/destination paths defined as global variables. EDIT: OK, already Figured out how to get custom variable value: $app.variables.item("%VARIABLE_NAME%").cachedcontent
  16. Still what I have not managed to figure out is, how to access user defined global variables from powershell script... Also, that dumped $APP variable psobjects list does not seem to include any user defined variables as well.
  17. Well, I can confirm that at least creating shortcuts works via powershell method... $WShell = New-Object -ComObject WScript.Shell $ShortCut = $WShell.CreateShortcut("$env:AppData\Microsoft\Internet Explorer\Quick Launch\$($App.Name).lnk") $Shortcut.TargetPath = "$env:SystemDrive\$($App.Name)\$($App.Name).exe" $Shortcut.WorkingDirectory = "$env:SystemDrive\$($App.Name)" $Shortcut.IconLocation = "imageres.dll,-65" $Shortcut.Save() So I could drop usage of nircmd.exe (actually that was the only reason to use it for me) for this... Copy-Item Remove-Item Works too... Unfortunately I must say, I have had no time to test anything else, as my personal life kicked in a bit... EDIT: Forgot to add that: Expand-Archive -Path $App.CurrentLocation -Destination "C:\Temp" Works too (Extracts the Zip file, requires Powershell 5.x), and "Expand-Item" throws error messagebox (As it should), as I managed to enter incorrect cmdlet name... Also, who is interested variable $App psobjects, which you can use in scripts, I dumped them: Only thing I`m missing, is tab completion in script window, but that is something which I`m just used to so it is not an actual problem... Script window is not an console, so it behaves like it is designed to behave.
  18. Will try to convert all my batch scripts to Powershell this weekend and will report back Also planning to implement some new ones, which was not feasible with batch or would have bacame overly complicated.
  19. Nope, both have NAS and LAN domain listed and Server Verification is not checked. As Installs are scripted both have pretty much same settings applied, post install. What I have discovered, it works when I switch to SMB1 on affected machine, but does not if it uses SMB3. Working one, does not seem to care, works on both occasions. It is definately something screwed up on Windows side, not sure what yet...
  20. Shawn, both machines run Windows 10, they are identical, one exhibits the problem another is not, and they both were installed approx 6 months ago. Shares aren`t mapped, they are pure UNC paths. Anyway, adding registry entries via command line would be probably the way to go on longer term indeed. Tried with Reg.exe as well, behavior was exactly the same, no import happening. Using Regedit instead of Reg.exe allows a bit more flexibility, for example if I would like to import something to HKCU hive while running Ketarin elevated. Reg.exe will add it to Administrator account, while Regedit.exe will still add it to Current User. Unfortunately I cannot get rid of external file dependencies completely, as some programs store their settings into config files which need to be copied during install.
  21. Interesting indeed, maybe I should try from local drive instead of Network share? Still it has worked before...no idea, why it does not work now. EDIT: Guess what, it works fine on another computer (Identical OS and Hardware), without any changes... Obviously this problem seems to be isolated to that specific Laptop...thx for checking out though...
  22. Should not be any, I have already triplechecked it... Be my guest: http://etz.planet.ee/Serato.xml I can upload Manifest.reg as well, if needed, it does not contain any secret data anyway.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.