Recommended Posts

Another question.

I'm creating standalone module for poweroff, all ok, but for detection?

These are the lines of poweroff.amc:

[AutoPatcher 5.0 Module]

[Configuration]

Name=Poweroff 3.0.1.3

Author=Jorgen Bosman

Description=Poweroff ? uno strumento che consente di spegnere o riavviare automaticamente il pc.

ParentID=STAND_ALONE_ENU

UniqueID=Stand_alone

URL=

Default=False

Expand=False

PicturePath=

ETA=5

NeedsRestart=False

Language=1040

TargetOS=ANY_2K_VERSION,ANY_XP_VERSION

TargetIE=ANY_IE

Priority=20051110

[Detection]

RegistryKey=

RegistryData=

RegistryValue=

[install With Backups]

md "%programfiles%\PowerOff"

copy "Module:\poweroff.exe" "%PROGRAMFILES%\PowerOff\poweroff.exe"

[install Without Backups]

same:

@Massimiliano2

you need to delve into your registry and find something that can identify the version of the software.

- right click the registry key path (think of it as a folder) and select 'copy key name'. paste it after 'registrykey='. Note use shorthand for the hives (e.g. 'HKEY_CURRENT_USER' should be 'HKCU')

- copy the value (think of this as a file) name and paste after 'registrydata='

- copy the data in the value, and paste after 'registryvalue='

note, either me or raptor have got the terms 'data' and 'value' mixed up, but what i mean by 'value' is like a file, and 'data' the data in the file (value).

also, i note this module is for LCID 1040.

if the same setup file can be used for english windows, you need to follow AIO rules (see translation documentation). the .amc file should be named like 'poweroff_ita.amc', the folder 'poweroff', and the setup instructions should use 'autopatcher:\modules\stand_alone_mods\poweroff\poweroff.exe'.

this means there isnt two copies of the setup/program file in two seperate folders, and the one folder is shared with one or more .amc files of different languages.

The problem is that poweroff is an utility standalone... there is a file poweroff.exe. :unsure:

can poweroff.exe be use on english windows and not just italian (1040) ?

if its just specifically for itallian windows then have:

poweroff_ita.amc

poweroff_ita.amc_files / poweroff.exe

if it can be used on multiple language versions of windows, have:

poweroff_ita.amc (containg the ita translation)

poweroff / poweroff.exe (containing the shared file)

in the first instance, because the folder name is the same as the .amc (ignore the '_files' bit), you would use 'module:\poweroff.exe' in the setup instructions.

in the second instance, the folder name is not the same, so you would have to use 'autopatcher:\modules\stand_alone_mods\poweroff\poweroff.exe' to access it (note 'autopatcher:\' refers to autopatcher.exe's location).

It's the second istance, done!

But the real problem is detection.

Autopatcher can detect the folder of installation specified (example, c:\program files\poweroff\poweroff.exe)??

What's the command line or condition?

AP 5.1 doesnt have file detection, just registry detection. file detection will come in AP 6.x

if theres nothing in the registry to use, do this:

1) create a setup file called 'inst.apf' and include it alongside poweroff.exe

2) in inst.apf past the following code

Windows Registry Editor Version 5.00

;AutoPatcher Detection
[HKEY_LOCAL_MACHINE\SOFTWARE\AutoPatcher]
"PowerOff"="3.0.1.3"

3) use the following detection

RegistryKey=HKLM\SOFTWARE\AutoPatcher
RegistryData=PowerOff
RegistryValue=3.0.1.3

note, if it only applies to the current user, replace 'HKLM' with 'HKCU' and 'HKEY_LOCAL_MACHINE' with 'HKEY_CURRENT_USER'.

Works!

Final lines of poweroff_ita.amc:

[AutoPatcher 5.0 Module]

[Configuration]

Name=Poweroff 3.0.1.3

Author=Jorgen Bosman

Description=Poweroff ? uno strumento che consente di spegnere o riavviare automaticamente il pc. Guida: http://www.megalab.it/articoli.php?id=295

ParentID=STAND_ALONE_ENU

UniqueID=Stand_alone

URL=

Default=False

Expand=False

PicturePath=

ETA=5

NeedsRestart=False

Language=1040

TargetOS=ANY_2K_VERSION,ANY_XP_VERSION

TargetIE=ANY_IE

Priority=20051110

[Detection]

RegistryKey=HKLM\SOFTWARE\AutoPatcher

RegistryData=PowerOff

RegistryValue=3.0.1.3

[install With Backups]

md "%programfiles%\PowerOff"

copy "autopatcher:\modules\stand_alone_mods\poweroff\poweroff.exe" "%PROGRAMFILES%\PowerOff\poweroff.exe"

regedit /s "autopatcher:\modules\stand_alone_mods\poweroff\inst.apf"

[install Without Backups]

same:

@Massimiliano2, well all your really doing is writing a batch file (.bat or .cmd).

autopatcher copies the install instructions to a .bat or .cmd file in your temp directory, replaces the relative paths using 'module:\' and 'autopatcher:\' with the full direct paths paths, runs the batch file, and deletes it again.

you could use:

copy "autopatcher:\modules\stand_alone_mods\poweroff\subfolder\*.*" "%PRORAMFILES%\poweroff\subfolder\*.*"

to copy everything in a subfolder of the power off folder across.

im not 100% sure if it'll also copy subfolders of the subfolder.

you should still use the other command to specifically copy poweroff.exe, else using *.* in that folder will also copy inst.apf which you dont want!

Please can you verify if these standalone modules are ok for an official release?

I'm with dkdk_it for pubblication of italian release.

These are few megabytes:

http://rapidshare.de/files/14133733/modules.rar.html

Edited by Massimiliano2

@Massimiliano2,

there were a few problems, but ive fixed them and encrypted your mods.

problems:

1) not all .amc files had '_ita' in the name, meaning if and when combined with english copies, the'd over write them instead of existing side by side. ive renamed them and altered the install paths.

2) optimised regseekers install instructions, swapping out about 11 lines with a single one! (using *.* to copy all files in the subfolder!).

3) replaced tweaks_ita.amc with the official one from the upcomming italian release.

delete your copies before extracting mine so you get rid of the stuff i renamed!

http://rapidshare.de/files/14140814/modules_enc.rar.html

ive spotted a few slight AIO mistakes in the few mods i downloaded to look at. i think i'll soon go through all the ones on the front page and correct any mistakes.

In the meantime, I've done other corrections, encryption required:

http://rapidshare.de/files/14302722/modules.rar.html

Please see also the problem above this post. (the color is black, therefore the module is encrypted, but still appears not official).

Edited by Massimiliano2

@Massimiliano2

sorry, it took so long for me to get round to. here are your new modules. extract to autopatcher/modules/

http://rapidshare.de/files/14597810/modules2_enc.rar.html

i havent got a clue why thats happening in the above image...

  • 2 weeks later...

Hello.

First off, I'd just like to thank you *whole-heartedly* for all the effort you & the dev team / contributors have put into making this an *awesome* way for us to keep new systems in tip-top-shape without having to muck about grabbing everything from MS the slow way... ::D:

Second, a note about the "MegaUpload" site you've got your stuff hosted by - they're pushing porn pop-up's. :blink: :blush: :no: :angry:

I clicked the little red X to close the floating flash ad (grrr), waited the five seconds for it to show the "download here" link, and noticed a new window come up.

Thinking it might be a system notice (like "It'll be a few minutes for us to serve you this file - there are only 32,987,556 people ahead of you in line." or some such) only to stare at a "Click here to see live cam ######!" ad! Complete with NSFW / NSF-Minors images of graphicly-depicted actions that are DEFINITELY not legal in the United States...

Any chance you can point me to a repository that *doesn't* serve up porn ads?

Heck, send the latest stand-alone to me via email (it's Google, they don't care - use .RAR max compression if you like) and I'll grep a copy that way...

But having to dive for [CONTROL]+[W] (hot key to close the open tab) so my boss doesn't think I'm trying to get my butt fired... Nearly gave me a heart attack! :woot: :rofl: :devil:

But having to dive for [CONTROL]+[W] (hot key to close the open tab) so my boss doesn't think I'm trying to get my butt fired... Nearly gave me a heart attack! :woot: :rofl: :devil:

Nah, quit naggin, you download this great product for free + you get some free action :devil: . And if your boss

catches you up, excuse yourself by saying this download is essential for profit :), and that guys that make it are dirty old geezers :laugh:

Cheers and enjoy!

Nah, quit naggin, you download this great product for free + you get some free action :devil: . And if your boss

catches you up, excuse yourself by saying this download is essential for profit :), and that guys that make it are dirty old geezers :laugh:

Cheers and enjoy!

^^ Your a retard... Besides most people who use this are in a business/corporate environment and aren't using WSUS currently or can't get out of the firewall for WUS. You my friend fail to see that most employers are quick to take action against anything that is deemed derrogatory and crude. Especially something of the nature of half naked woman. They most likely don't work at a auto shop where this is something that could be put up without a flinching of the upper management.

I myself work at a hospital with mostly woman. They would have my head and kill my firstborn if I were to put up a picture of a half clad woman. Probably because they could only dream of being that hot. :shifty:

Don't get me wrong though the female body is a site to behold and can be the most beautiful thing to lay eyes and *cough* hands on. :woot:

Unless your just being sarcastic and in the case :blink: :p :D

Yes I am a troll with only 1 post... so?!?!? heh... Great program and I've used it since it came out.

:whistle:

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Adobe Acrobat Reader DC 2026.001.21651 by Razvan Serea Adobe Acrobat Reader DC software is the free, trusted standard for viewing, printing, signing, and annotating PDFs. Its the only PDF viewer that can open and interact with all types of PDF content – including forms and multimedia. It’s connected to Adobe Document Cloud – so you can work with PDFs on computers and mobile devices. Adobe Document Cloud is a revolutionary, modern and efficient way to get work done with documents in the office, at home or on-the-go. At the heart of Document Cloud is the all-new Adobe Acrobat DC, which will take e-signatures mainstream by delivering free e-signing with every individual subscription. Document Cloud includes a set of integrated services that use a consistent online profile and personal document hub. With Adobe Document Cloud, people will be able to create, review, approve, sign and track documents whether on a desktop or mobile device. Businesses will be able to take advantage of Document Cloud for enterprise which provides enterprise-class document services that integrate into systems of record such as CRM, HCM, CLM, and CMS, adding speed, efficiency and transparency to getting business done with documents. Adobe Acrobat Reader DC new feature highlights: Work with PDFs from anywhere with the new, free Acrobat DC mobile app for Android or iOS. Select functionality is also available on Windows Phone. Use the new Fill & Sign tool in your desktop software to complete PDF forms fast with smart autofill. Download the free Adobe Fill & Sign mobile app to add the same option to your iPad or Android tablet device. Save money on ink and toner when printing from your Windows PC. Store and access files in Adobe Document Cloud with 5GB of free storage. Get instant access to recent files across desktop, web, and mobile devices with Mobile Link. Sync your Fill & Sign autofill collection across desktop, web, and iPad devices. Adobe PDF Pack premium features includes: Convert documents and images to PDF files. Use your mobile device camera to take a picture of a paper document or form and convert it to PDF. Turn PDFs into editable Microsoft Word, Excel, PowerPoint, or RTF files. Combine multiple files into a single PDF (web only). Get signatures from others with a complete e-signature service. Send, track, and confirm delivery of documents electronically instead of using fax or overnight services (tracking not available on mobile). Store and access files online with 20GB of storage. Download: Adobe Acrobat Reader DC 64-bit | 719.0 MB (Freeware) Link: Adobe Acrobat Reader DC Home Page | Release Notes | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • The consumer ESU is ending in 4 months. LTSC isn't now, never has been, and never will be for consumer use, it is for OT usage - plant machinery, medical devices, manufacturing equipment etc. LTSC requires a Microsoft EA. You can't legally obtain LTSC to run on your PC at home.
    • Hmm actually looks decently interesting!  
    • Being on GitHub doesn't make something safe. Like any unofficial scripts to do x or y this caters to people with just enough knowledge to be dangerous. If you want to do what this does, and you actually know what you're doing then write your own script (or maybe just add the reg keys yourself) if you don't have the ability to read and understand what a script is doing, and especially don't run it with elevated privileges. Or in this case just use an MSA, sign up the normal route, and stop trying to push water up hill
  • Recent Achievements

    • Week One Done
      JKR earned a badge
      Week One Done
    • Rookie
      moog19 went up a rank
      Rookie
    • Mentor
      grik went up a rank
      Mentor
    • Dedicated
      JKR earned a badge
      Dedicated
    • One Year In
      CHUNWEI earned a badge
      One Year In
  • Popular Contributors

    1. 1
      +primortal
      489
    2. 2
      PsYcHoKiLLa
      271
    3. 3
      Skyfrog
      75
    4. 4
      Steven P.
      68
    5. 5
      FloatingFatMan
      64
  • Tell a friend

    Love Neowin? Tell a friend!