MSFN Forum: How can i "silently" add text in an .ini file - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How can i "silently" add text in an .ini file Rate Topic: -----

#1 User is offline   coucou 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 806
  • Joined: 01-January 04

Posted 18 October 2007 - 04:45 AM

Hi,

How can i "silently" add the 2 lines text bellow in an .ini file
[Serial]
Serial=XXXXXXXXXXXXXXXXXXXXXXX


Regards
coucou


#2 User is offline   Arie 

  • One Man Army
  • PipPipPipPipPip
  • Group: Members
  • Posts: 835
  • Joined: 27-August 07

Posted 18 October 2007 - 04:55 AM

I don't quite understand your problem or why you would want to do this. Couldn't you simply just replace the INI-file completely?

#3 User is offline   coucou 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 806
  • Joined: 01-January 04

Posted 18 October 2007 - 05:39 AM

TNX Arie for yr reply.

During the appz installation, a setting.ini file is created with a special entries see here bellow
[Other]
OpenFileDlg=D:\Private\Misc\
[General]
SaveMode=0
SavePath=C:\
O_passWord=
Record_Log=0
LogPath=C:\Program Files\Ap PDF to IMAGE\
[Page]
PageRange=0
C_Pages=
PageZoom=100
C_ImgSize=0
C_ImgSizeW=594
C_ImgSizeH=792
C_ImgSize_Sel=4
C_ImgRotate=0
C_ImgAngle=90
[FilenName]
UseTemplate=1
ReplaceMode=0
StartAt=0
Template=<File_Name>####
[Image]
Img_Type=3
Dpi_X=100
Dpi_Y=100
Jpg_Quality=75
BitCount=0
Grayscale=0
Tiff_Compress=1
Tiff_Jpg_Quality=75
Tiff_IsAppend=1
[InterFace]
ListToolbar=1
MainToolbar=1
Statusbar=1


Then i'm looking to add these 2 lines (entries) in that existing setting.ini file
[Serial]
Serial=XXXXXXXXXXXXXXXXXXXXXXX


Regards
coucou

#4 User is offline   CEoCEo 

  • Junior
  • Pip
  • Group: Members
  • Posts: 63
  • Joined: 20-April 05

Posted 18 October 2007 - 05:52 AM

Simply use hidden DOS commands with cWnd/cmdow or AutoIt... :rolleyes:
echo [Serial]>>setting.ini
echo Serial=XXXXXXXXXXXXXXXXXXXXXXX>>setting.ini

AutoIt3.exe /AutoIt3ExecuteLine "IniWrite ( 'C:\setting.ini', 'Serial', 'Serial', 'XXXXXXXXXXXXXXXXXXXXXXX' )"


#5 User is offline   coucou 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 806
  • Joined: 01-January 04

Posted 18 October 2007 - 07:06 AM

BRAVO CEoCEo :D

Tested both cWnd/cmdow and AutoIt works :thumbup

Thank you
coucou

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy